Test init_cfg with nonexistent file.
(self, temp_dir)
| 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 | |
| 190 | class TestGetCfg: |
nothing calls this directly
no test coverage detected