()
| 25 | |
| 26 | |
| 27 | def 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 | |
| 35 | def test_api_get_calls_api_and_prints(monkeypatch): |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…