Lines Matching refs:exit_code
39 def test_from_file(caplog, f_contents, f_exists, exit_code, expected_logs): argument
49 pytest.raises(SystemExit) if exit_code else nullcontext() as s_exit:
52 if exit_code:
53 assert str(s_exit.value) == str(exit_code)
106 exit_code, argument
116 pytest.raises(SystemExit) if exit_code else nullcontext() as exit_st:
119 if exit_code:
120 assert str(exit_st.value) == str(exit_code)
210 exit_code, argument
232 with pytest.raises(SystemExit) if exit_code else nullcontext() as s_exit:
237 if exit_code:
238 assert str(s_exit.value) == str(exit_code)