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

Method test_init_cfg_nonexistent

tests/utils/test_config.py:184–187  ·  view source on GitHub ↗

Test init_cfg with nonexistent file.

(self, temp_dir)

Source from the content-addressed store, hash-verified

182 assert cfg.test_key == "test_value"
183
184 def test_init_cfg_nonexistent(self, temp_dir):
185 """Test init_cfg with nonexistent file."""
186 with pytest.raises((FileNotFoundError, ModuleNotFoundError)):
187 init_cfg(os.path.join(temp_dir, "nonexistent.py"))
188
189
190class TestGetCfg:

Callers

nothing calls this directly

Calls 1

init_cfgFunction · 0.90

Tested by

no test coverage detected