MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / test_entry_func_only_function

Function test_entry_func_only_function

tests/test_web_cli.py:30–37  ·  view source on GitHub ↗
(mocker)

Source from the content-addressed store, hash-verified

28
29
30def 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
40def test_entry_func_only_separator(mocker) -> None:

Callers

nothing calls this directly

Calls 1

patchMethod · 0.45

Tested by

no test coverage detected