Test initialization with Python config file.
(self, temp_dir)
| 25 | assert len(config) == 0 |
| 26 | |
| 27 | def test_init_with_py_file(self, temp_dir): |
| 28 | """Test initialization with Python config file.""" |
| 29 | # Create a Python config file |
| 30 | config_path = os.path.join(temp_dir, "test_config.py") |
| 31 | with open(config_path, "w") as f: |
| 32 | f.write("name = 'test'\nvalue = 42\n") |
| 33 | |
| 34 | config = Config(config_path) |
| 35 | assert config.name == "test" |
| 36 | assert config.value == 42 |
| 37 | |
| 38 | |
| 39 | class TestConfigLoadFromFile: |