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

Function test_version_flag

tests/cli/test_cli_main.py:27–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def test_version_flag():
28 runner = CliRunner()
29 result = runner.invoke(cli_main.codecarbon, ["--version"])
30 assert result.exit_code == 0
31 assert cli_main.__app_name__ in result.output
32 assert str(cli_main.__version__) in result.output
33
34
35def test_api_get_calls_api_and_prints(monkeypatch):

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…