(mocker)
| 28 | |
| 29 | |
| 30 | def test_entry_func_only_function(mocker) -> None: |
| 31 | argv = [":test"] |
| 32 | error = mocker.patch("aiohttp.web.ArgumentParser.error", side_effect=SystemExit) |
| 33 | |
| 34 | with pytest.raises(SystemExit): |
| 35 | web.main(argv) |
| 36 | |
| 37 | error.assert_called_with("'entry-func' not in 'module:function' syntax") |
| 38 | |
| 39 | |
| 40 | def test_entry_func_only_separator(mocker) -> None: |