Skip to content

Commit

Permalink
Skip TestRepr.test_psycopg if psycopg can't be imported
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Aug 2, 2024
1 parent c9a0017 commit cb1a9b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_datastores.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@ async def test_aiosqlite(
)

async def test_psycopg(self, psycopg_async_store: SQLAlchemyDataStore) -> None:
pytest.importorskip("psycopg")
assert repr(psycopg_async_store) == (
"SQLAlchemyDataStore(url='postgresql+psycopg://postgres:***@localhost/"
"testdb', schema='psycopg_async')"
Expand Down

0 comments on commit cb1a9b8

Please sign in to comment.