Calling with `--help` should print help and exit 0.
(self)
| 27 | class TestToolchainCL: |
| 28 | |
| 29 | def test_help(self): |
| 30 | """ |
| 31 | Calling with `--help` should print help and exit 0. |
| 32 | """ |
| 33 | argv = ['toolchain.py', '--help', '--storage-dir=/tmp'] |
| 34 | with patch_sys_argv(argv), raises_system_exit( |
| 35 | ) as ex_info, patch_argparse_print_help() as m_print_help: |
| 36 | ToolchainCL() |
| 37 | assert ex_info.value.code == 0 |
| 38 | assert m_print_help.call_args_list == [mock.call()] |
| 39 | |
| 40 | @pytest.mark.skipif(sys.version_info < (3, 0), reason="requires python3") |
| 41 | def test_unknown(self): |
nothing calls this directly
no test coverage detected