You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
633 B
20 lines
633 B
import pytest
|
|
|
|
|
|
def test_social_algorithms_module_can_be_imported():
|
|
"""Test that social_algorithms module can be imported"""
|
|
try:
|
|
from swarms.structs import social_algorithms
|
|
assert social_algorithms is not None
|
|
except ImportError:
|
|
pytest.skip("Module has import dependencies")
|
|
|
|
|
|
def test_social_algorithms_classes_exist():
|
|
"""Test that social algorithm classes exist"""
|
|
try:
|
|
from swarms.structs.social_algorithms import SocialSwarm
|
|
assert SocialSwarm is not None
|
|
except (ImportError, AttributeError):
|
|
pytest.skip("Classes not available or have dependencies")
|