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

Method test_init_with_py_file

tests/utils/test_config.py:27–36  ·  view source on GitHub ↗

Test initialization with Python config file.

(self, temp_dir)

Source from the content-addressed store, hash-verified

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
39class TestConfigLoadFromFile:

Callers

nothing calls this directly

Calls 1

ConfigClass · 0.90

Tested by

no test coverage detected