diff --git a/test/test_run_detection.py b/test/test_run_detection.py index 45401f3..10ad27c 100644 --- a/test/test_run_detection.py +++ b/test/test_run_detection.py @@ -220,12 +220,13 @@ def test_start_run_detection(): """ mock_channel = Mock() - with (pytest.raises(InterruptedError), - patch("rundetection.run_detection.get_channel", return_value=mock_channel) as mock_get_channel, - patch("rundetection.run_detection.process_messages") as mock_proc_messages, - patch("rundetection.run_detection.process_notifications") as mock_proc_notifications, - patch("rundetection.run_detection.SimpleQueue") as mock_queue, - patch("rundetection.run_detection.time.sleep", side_effect=InterruptedError), + with ( + pytest.raises(InterruptedError), + patch("rundetection.run_detection.get_channel", return_value=mock_channel) as mock_get_channel, + patch("rundetection.run_detection.process_messages") as mock_proc_messages, + patch("rundetection.run_detection.process_notifications") as mock_proc_notifications, + patch("rundetection.run_detection.SimpleQueue") as mock_queue, + patch("rundetection.run_detection.time.sleep", side_effect=InterruptedError), ): start_run_detection() diff --git a/test/test_specifications.py b/test/test_specifications.py index bc737cc..4f1d1ac 100644 --- a/test/test_specifications.py +++ b/test/test_specifications.py @@ -1,6 +1,7 @@ """ Specification unit test module """ + import os from pathlib import Path