fix pytest fixtures
All checks were successful
ci/woodpecker/push/tests Pipeline was successful

Signed-off-by: Ivan Schaller <ivan@schaller.sh>
This commit is contained in:
Ivan Schaller 2023-07-02 16:45:33 +02:00
parent 873e6ab0e2
commit 7a7ace9286
Signed by: olofvndrhr
GPG key ID: 2A6BE07D99C8C205
4 changed files with 7 additions and 7 deletions

View file

@ -8,13 +8,13 @@ from pytest import MonkeyPatch
@pytest.fixture @pytest.fixture
def wait_10s(_: MonkeyPatch): def wait_10s():
print("sleeping 10 seconds because of api timeouts") print("sleeping 10 seconds because of api timeouts")
time.sleep(10) time.sleep(10)
@pytest.fixture @pytest.fixture
def wait_20s(_: MonkeyPatch): def wait_20s():
print("sleeping 20 seconds because of api timeouts") print("sleeping 20 seconds because of api timeouts")
time.sleep(20) time.sleep(20)

View file

@ -11,7 +11,7 @@ from mangadlp.metadata import validate_metadata, write_metadata
@pytest.fixture @pytest.fixture
def wait_20s(_: MonkeyPatch): def wait_20s():
print("sleeping 20 seconds because of api timeouts") print("sleeping 20 seconds because of api timeouts")
time.sleep(20) time.sleep(20)

View file

@ -11,13 +11,13 @@ from mangadlp import app
@pytest.fixture @pytest.fixture
def wait_10s(_: MonkeyPatch): def wait_10s():
print("sleeping 10 seconds because of api timeouts") print("sleeping 10 seconds because of api timeouts")
time.sleep(10) time.sleep(10)
@pytest.fixture @pytest.fixture
def wait_20s(_: MonkeyPatch): def wait_20s():
print("sleeping 20 seconds because of api timeouts") print("sleeping 20 seconds because of api timeouts")
time.sleep(20) time.sleep(20)

View file

@ -8,13 +8,13 @@ from pytest import MonkeyPatch
@pytest.fixture @pytest.fixture
def wait_10s(_: MonkeyPatch): def wait_10s():
print("sleeping 10 seconds because of api timeouts") print("sleeping 10 seconds because of api timeouts")
time.sleep(10) time.sleep(10)
@pytest.fixture @pytest.fixture
def wait_20s(_: MonkeyPatch): def wait_20s():
print("sleeping 20 seconds because of api timeouts") print("sleeping 20 seconds because of api timeouts")
time.sleep(20) time.sleep(20)