def test_main_print_config(): with pytest.raises(SystemExit): AbsTask.main(cmd=["--print_config"])
def test_main_with_no_args(): with pytest.raises(SystemExit): AbsTask.main(cmd=[])
def test_main_help(): with pytest.raises(SystemExit): AbsTask.main(cmd=["--help"])