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.
swarms/tests/structs/test_heavy_swarm.py

20 lines
630 B

import pytest
def test_heavy_swarm_module_can_be_imported():
"""Test that heavy_swarm module can be imported"""
try:
from swarms.structs import heavy_swarm
assert heavy_swarm is not None
except ImportError:
pytest.skip("heavy_swarm module has import dependencies")
def test_heavy_swarm_class_exists():
"""Test that HeavySwarm class exists if module is available"""
try:
from swarms.structs.heavy_swarm import HeavySwarm
assert HeavySwarm is not None
except (ImportError, AttributeError):
pytest.skip("HeavySwarm class not available or has dependencies")