MCPcopy Create free account
hub / github.com/mlco2/codecarbon / test_get_config_raises_when_missing

Function test_get_config_raises_when_missing

tests/cli/test_cli_utils.py:17–19  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

15
16
17def test_get_config_raises_when_missing(tmp_path):
18 with pytest.raises(FileNotFoundError):
19 cli_utils.get_config(tmp_path / ".codecarbon.config")
20
21
22def test_get_api_endpoint_appends_default_when_missing_key(tmp_path):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…