summaryrefslogtreecommitdiff
path: root/tests/test_datastores.py
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2022-01-02 17:20:26 +0200
committerAlex Grönholm <alex.gronholm@nextday.fi>2022-02-15 02:20:18 +0200
commitfcd6d13a0d8fffe2169124eecfcda752fe07ec96 (patch)
tree44bdb220015d3d489e367839f0f97328a029cdc5 /tests/test_datastores.py
parent82f6f8e230252efc19d0e5a38e218ac1c34563b8 (diff)
downloadapscheduler-fcd6d13a0d8fffe2169124eecfcda752fe07ec96.tar.gz
Fixed mypy errors in tests
Diffstat (limited to 'tests/test_datastores.py')
-rw-r--r--tests/test_datastores.py23
1 files changed, 12 insertions, 11 deletions
diff --git a/tests/test_datastores.py b/tests/test_datastores.py
index 3edff4a..0b484f1 100644
--- a/tests/test_datastores.py
+++ b/tests/test_datastores.py
@@ -8,6 +8,7 @@ from typing import AsyncGenerator
import anyio
import pytest
from freezegun.api import FrozenDateTimeFactory
+from pytest_lazyfixture import lazy_fixture
from apscheduler.abc import AsyncDataStore, DataStore, Job, Schedule
from apscheduler.datastores.async_adapter import AsyncDataStoreAdapter
@@ -89,13 +90,13 @@ async def asyncpg_store() -> AsyncDataStore:
@pytest.fixture(params=[
- pytest.param(pytest.lazy_fixture('memory_store'), id='memory'),
- pytest.param(pytest.lazy_fixture('sqlite'), id='sqlite'),
- pytest.param(pytest.lazy_fixture('mongodb_store'), id='mongodb',
+ pytest.param(lazy_fixture('memory_store'), id='memory'),
+ pytest.param(lazy_fixture('sqlite'), id='sqlite'),
+ pytest.param(lazy_fixture('mongodb_store'), id='mongodb',
marks=[pytest.mark.external_service]),
- pytest.param(pytest.lazy_fixture('psycopg2_store'), id='psycopg2',
+ pytest.param(lazy_fixture('psycopg2_store'), id='psycopg2',
marks=[pytest.mark.external_service]),
- pytest.param(pytest.lazy_fixture('mysql_store'), id='mysql',
+ pytest.param(lazy_fixture('mysql_store'), id='mysql',
marks=[pytest.mark.external_service])
])
def sync_store(request) -> DataStore:
@@ -103,7 +104,7 @@ def sync_store(request) -> DataStore:
@pytest.fixture(params=[
- pytest.param(pytest.lazy_fixture('asyncpg_store'), id='asyncpg',
+ pytest.param(lazy_fixture('asyncpg_store'), id='asyncpg',
marks=[pytest.mark.external_service])
])
def async_store(request) -> AsyncDataStore:
@@ -111,13 +112,13 @@ def async_store(request) -> AsyncDataStore:
@pytest.fixture(params=[
- pytest.param(pytest.lazy_fixture('memory_store'), id='memory'),
- pytest.param(pytest.lazy_fixture('sqlite_store'), id='sqlite'),
- pytest.param(pytest.lazy_fixture('mongodb_store'), id='mongodb',
+ pytest.param(lazy_fixture('memory_store'), id='memory'),
+ pytest.param(lazy_fixture('sqlite_store'), id='sqlite'),
+ pytest.param(lazy_fixture('mongodb_store'), id='mongodb',
marks=[pytest.mark.external_service]),
- pytest.param(pytest.lazy_fixture('psycopg2_store'), id='psycopg2',
+ pytest.param(lazy_fixture('psycopg2_store'), id='psycopg2',
marks=[pytest.mark.external_service]),
- pytest.param(pytest.lazy_fixture('mysql_store'), id='mysql',
+ pytest.param(lazy_fixture('mysql_store'), id='mysql',
marks=[pytest.mark.external_service])
])
async def datastore(request):