(tmp_path)
| 6 | |
| 7 | |
| 8 | def test_get_config_reads_codecarbon_section(tmp_path): |
| 9 | config_path = tmp_path / ".codecarbon.config" |
| 10 | config_path.write_text("[codecarbon]\napi_endpoint=https://example.test\n") |
| 11 | |
| 12 | config = cli_utils.get_config(config_path) |
| 13 | |
| 14 | assert config["api_endpoint"] == "https://example.test" |
| 15 | |
| 16 | |
| 17 | def test_get_config_raises_when_missing(tmp_path): |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…