Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Steve-Dusty
Copy link
Contributor

@Steve-Dusty Steve-Dusty commented Oct 23, 2025

added pytest to almost all, rewritten in pure functions, fixed tests


📚 Documentation preview 📚: https://swarms--1157.org.readthedocs.build/en/1157/

@github-actions github-actions bot added the tests label Oct 23, 2025
from swarms import Agent
from swarms.structs.concurrent_workflow import ConcurrentWorkflow

import pytest

Check failure

Code scanning / Pyre

Undefined import

Undefined import [21]: Could not find a module corresponding to import `pytest`.
import json
import shutil
from datetime import datetime
import pytest

Check failure

Code scanning / Pyre

Undefined import

Undefined import [21]: Could not find a module corresponding to import `pytest`.
@@ -1,4 +1,4 @@
import sys
import pytest

Check failure

Code scanning / Pyre

Undefined import

Undefined import [21]: Could not find a module corresponding to import `pytest`.
Tests follow the example.py pattern with real agents and multiple agent scenarios.
"""

import pytest

Check failure

Code scanning / Pyre

Undefined import

Undefined import [21]: Could not find a module corresponding to import `pytest`.
@@ -1,3 +1,5 @@
import pytest

Check failure

Code scanning / Pyre

Undefined import

Undefined import [21]: Could not find a module corresponding to import `pytest`.
@@ -1,219 +1,419 @@
import os
import pytest

Check failure

Code scanning / Pyre

Undefined import

Undefined import [21]: Could not find a module corresponding to import `pytest`.


def create_test_agent(name: str) -> Agent:
def create_test_agent(name: str, description: str = None) -> Agent:

Check failure

Code scanning / Pyre

Incompatible variable type

Incompatible variable type [9]: description is declared to have type `str` but is used as type `None`.
import sys

from loguru import logger
import pytest

Check failure

Code scanning / Pyre

Undefined import

Undefined import [21]: Could not find a module corresponding to import `pytest`.
import os
import asyncio
from loguru import logger
import pytest

Check failure

Code scanning / Pyre

Undefined import

Undefined import [21]: Could not find a module corresponding to import `pytest`.
@@ -1,5 +1,5 @@
import asyncio
import time
import pytest

Check failure

Code scanning / Pyre

Undefined import

Undefined import [21]: Could not find a module corresponding to import `pytest`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant