コード例 #1
0
def test_main_print_config():
    with pytest.raises(SystemExit):
        AbsTask.main(cmd=["--print_config"])
コード例 #2
0
def test_main_with_no_args():
    with pytest.raises(SystemExit):
        AbsTask.main(cmd=[])
コード例 #3
0
def test_main_help():
    with pytest.raises(SystemExit):
        AbsTask.main(cmd=["--help"])