MCPcopy Create free account
hub / github.com/theskumar/python-dotenv / test_run_with_invalid_cmd

Function test_run_with_invalid_cmd

tests/test_cli.py:229–233  ·  view source on GitHub ↗
(cli)

Source from the content-addressed store, hash-verified

227
228
229def test_run_with_invalid_cmd(cli):
230 result = cli.invoke(dotenv_cli, ['run', 'i_do_not_exist'])
231
232 assert result.exit_code == 2
233 assert "Invalid value for '-f'" in result.output
234
235
236def test_run_with_version(cli):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected