From 9ded0bc6d10cef991eb10052e90d2d6ca91b7a09 Mon Sep 17 00:00:00 2001 From: Gonzalo Rafuls Date: Thu, 19 Oct 2023 15:04:55 +0200 Subject: [PATCH] fix: test scp on test pass mocking datetime.now --- tests/test_scp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_scp.py b/tests/test_scp.py index 2d0bc73..272ce37 100644 --- a/tests/test_scp.py +++ b/tests/test_scp.py @@ -113,6 +113,7 @@ class TestExportSCP(TestBase): tests_dir = os.path.dirname(__file__) example_path = os.path.join(tests_dir, "fixtures/example_scp.json") + @patch("badfish.helpers.get_now", fixed_datetime) @patch("aiohttp.ClientSession.delete") @patch("aiohttp.ClientSession.post") @patch("aiohttp.ClientSession.get")