Create registry with test module.
(self)
| 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.""" |