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_swarm_templates.py

20 lines
623 B

import pytest
def test_swarm_templates_module_can_be_imported():
"""Test that swarm_templates module can be imported"""
try:
from swarms.structs import swarm_templates
assert swarm_templates is not None
except ImportError:
pytest.skip("Module has import dependencies")
def test_swarm_templates_classes_exist():
"""Test that swarm template classes exist"""
try:
from swarms.structs.swarm_templates import SwarmTemplate
assert SwarmTemplate is not None
except (ImportError, AttributeError):
pytest.skip("Classes not available or have dependencies")