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

Method test_app

tests/cli/test_cli.py:49–53  ·  view source on GitHub ↗
(self, MockApiClient)

Source from the content-addressed store, hash-verified

47 }
48
49 def test_app(self, MockApiClient):
50 result = self.runner.invoke(codecarbon, ["--version"])
51 self.assertEqual(result.exit_code, 0)
52 self.assertIn(__app_name__, result.stdout)
53 self.assertIn(__version__, result.stdout)
54
55 @patch("codecarbon.cli.main.show_config")
56 @patch("codecarbon.cli.main.get_api_key")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected