MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / registry

Method registry

tests/utils/test_registry.py:160–170  ·  view source on GitHub ↗

Create registry with test module.

(self)

Source from the content-addressed store, hash-verified

158
159 @pytest.fixture
160 def registry(self):
161 """Create registry with test module."""
162 registry = Registry(name="test")
163
164 @registry.register_module()
165 class TestClass:
166 def __init__(self, param1=None, param2=None):
167 self.param1 = param1
168 self.param2 = param2
169
170 return registry
171
172 def test_build_from_dict_config(self, registry):
173 """Test building from dict config."""

Callers

nothing calls this directly

Calls 1

RegistryClass · 0.90

Tested by

no test coverage detected