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")