From 8a3975c8c23eed56d7c7979fb8bd351cccf30317 Mon Sep 17 00:00:00 2001 From: Albert Snow Date: Mon, 1 Apr 2024 11:21:42 -0500 Subject: [PATCH] fix(refactor): specifying error --- tests/test_file_handling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_file_handling.py b/tests/test_file_handling.py index 5a06c45..280ac2e 100644 --- a/tests/test_file_handling.py +++ b/tests/test_file_handling.py @@ -27,5 +27,5 @@ def test_write_to_file_or_log_error_succeeds(tmpdir): def test_write_to_file_or_log_error_fails(): """ Tests that write_submission_order_to_file fails when the directory does not exist""" - with pytest.raises(Exception): + with pytest.raises(IOError): write_submission_order_to_file(example_submission_order, "/test-path")