-
-
Notifications
You must be signed in to change notification settings - Fork 657
refactored tests/structs #1157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactored tests/structs #1157
Conversation
| from swarms import Agent | ||
| from swarms.structs.concurrent_workflow import ConcurrentWorkflow | ||
|
|
||
| import pytest |
Check failure
Code scanning / Pyre
Undefined import
tests/structs/test_conversation.py
Outdated
| import json | ||
| import shutil | ||
| from datetime import datetime | ||
| import pytest |
Check failure
Code scanning / Pyre
Undefined import
tests/structs/test_forest_swarm.py
Outdated
| @@ -1,4 +1,4 @@ | |||
| import sys | |||
| import pytest | |||
Check failure
Code scanning / Pyre
Undefined import
| Tests follow the example.py pattern with real agents and multiple agent scenarios. | ||
| """ | ||
|
|
||
| import pytest |
Check failure
Code scanning / Pyre
Undefined import
tests/structs/test_groupchat.py
Outdated
| @@ -1,3 +1,5 @@ | |||
| import pytest | |||
Check failure
Code scanning / Pyre
Undefined import
| @@ -1,219 +1,419 @@ | |||
| import os | |||
| import pytest | |||
Check failure
Code scanning / Pyre
Undefined import
|
|
||
|
|
||
| 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
| import sys | ||
|
|
||
| from loguru import logger | ||
| import pytest |
Check failure
Code scanning / Pyre
Undefined import
tests/structs/test_spreadsheet.py
Outdated
| import os | ||
| import asyncio | ||
| from loguru import logger | ||
| import pytest |
Check failure
Code scanning / Pyre
Undefined import
| @@ -1,5 +1,5 @@ | |||
| import asyncio | |||
| import time | |||
| import pytest | |||
Check failure
Code scanning / Pyre
Undefined import
added pytest to almost all, rewritten in pure functions, fixed tests
📚 Documentation preview 📚: https://swarms--1157.org.readthedocs.build/en/1157/