From 1cae1d1924f39affa6a5d58ca8fa746a7e93d471 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 11 Jun 2024 14:11:19 +0000 Subject: [PATCH] Formatting and linting commit --- test/test_run_detection.py | 13 +++++++------ test/test_specifications.py | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) 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