diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2021-08-29 15:36:58 +0300 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2021-08-29 15:36:58 +0300 |
commit | dba60da05eb390e7a09a1e4898404e2be934e06d (patch) | |
tree | acfca1f61e30c3a6e3facc59a7f2202aa86b9e88 /tests/conftest.py | |
parent | 2d6a2baebb24166ab47cfe5089d36a15c708363a (diff) | |
download | apscheduler-dba60da05eb390e7a09a1e4898404e2be934e06d.tar.gz |
Moved the listen/notify support from the postgresql store to the async sqlalchemy job store
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 068590f..1de47ed 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -50,17 +50,6 @@ def setup_mongodb_store() -> Generator[DataStore, None, None]: yield MongoDBDataStore(client, start_from_scratch=True) -@asynccontextmanager -async def setup_postgresql_store() -> AsyncGenerator[AsyncDataStore, None]: - from apscheduler.datastores.async_.postgresql import PostgresqlDataStore - from asyncpg import create_pool - - pool = await create_pool('postgresql://postgres:secret@localhost/testdb', - min_size=1, max_size=2) - async with pool: - yield PostgresqlDataStore(pool, start_from_scratch=True) - - @contextmanager def setup_sqlalchemy_store() -> Generator[DataStore, None, None]: from apscheduler.datastores.sync.sqlalchemy import SQLAlchemyDataStore @@ -96,7 +85,6 @@ def setup_sync_store(request) -> ContextManager[DataStore]: @pytest.fixture(params=[ - pytest.param(setup_postgresql_store, id='postgresql', marks=[pytest.mark.externaldb]), pytest.param(setup_async_sqlalchemy_store, id='async_sqlalchemy', marks=[pytest.mark.externaldb]) ]) @@ -108,7 +96,6 @@ def setup_async_store(request) -> AsyncContextManager[AsyncDataStore]: pytest.param(setup_memory_store, id='memory'), pytest.param(setup_mongodb_store, id='mongodb', marks=[pytest.mark.externaldb]), pytest.param(setup_sqlalchemy_store, id='sqlalchemy', marks=[pytest.mark.externaldb]), - pytest.param(setup_postgresql_store, id='postgresql', marks=[pytest.mark.externaldb]), pytest.param(setup_async_sqlalchemy_store, id='async_sqlalchemy', marks=[pytest.mark.externaldb]) ]) |