From 7a7ace92861f67ac078bec28ef56ac0310fa2686 Mon Sep 17 00:00:00 2001 From: Ivan Schaller Date: Sun, 2 Jul 2023 16:45:33 +0200 Subject: [PATCH] fix pytest fixtures Signed-off-by: Ivan Schaller --- tests/test_05_hooks.py | 4 ++-- tests/test_07_metadata.py | 2 +- tests/test_21_full.py | 4 ++-- tests/test_22_all_flags.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/test_05_hooks.py b/tests/test_05_hooks.py index f685d4a..d7052a4 100644 --- a/tests/test_05_hooks.py +++ b/tests/test_05_hooks.py @@ -8,13 +8,13 @@ from pytest import MonkeyPatch @pytest.fixture -def wait_10s(_: MonkeyPatch): +def wait_10s(): print("sleeping 10 seconds because of api timeouts") time.sleep(10) @pytest.fixture -def wait_20s(_: MonkeyPatch): +def wait_20s(): print("sleeping 20 seconds because of api timeouts") time.sleep(20) diff --git a/tests/test_07_metadata.py b/tests/test_07_metadata.py index 653fc23..6c01aab 100644 --- a/tests/test_07_metadata.py +++ b/tests/test_07_metadata.py @@ -11,7 +11,7 @@ from mangadlp.metadata import validate_metadata, write_metadata @pytest.fixture -def wait_20s(_: MonkeyPatch): +def wait_20s(): print("sleeping 20 seconds because of api timeouts") time.sleep(20) diff --git a/tests/test_21_full.py b/tests/test_21_full.py index 2ebc1e0..ee7765f 100644 --- a/tests/test_21_full.py +++ b/tests/test_21_full.py @@ -11,13 +11,13 @@ from mangadlp import app @pytest.fixture -def wait_10s(_: MonkeyPatch): +def wait_10s(): print("sleeping 10 seconds because of api timeouts") time.sleep(10) @pytest.fixture -def wait_20s(_: MonkeyPatch): +def wait_20s(): print("sleeping 20 seconds because of api timeouts") time.sleep(20) diff --git a/tests/test_22_all_flags.py b/tests/test_22_all_flags.py index 3c35567..75f467d 100644 --- a/tests/test_22_all_flags.py +++ b/tests/test_22_all_flags.py @@ -8,13 +8,13 @@ from pytest import MonkeyPatch @pytest.fixture -def wait_10s(_: MonkeyPatch): +def wait_10s(): print("sleeping 10 seconds because of api timeouts") time.sleep(10) @pytest.fixture -def wait_20s(_: MonkeyPatch): +def wait_20s(): print("sleeping 20 seconds because of api timeouts") time.sleep(20)