From cb1a9b8aa18daeea97f0cf5d43cd4005f171ab73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Fri, 2 Aug 2024 12:56:43 +0300 Subject: [PATCH] Skip TestRepr.test_psycopg if psycopg can't be imported --- tests/test_datastores.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_datastores.py b/tests/test_datastores.py index 8e10b39b..3efa528a 100644 --- a/tests/test_datastores.py +++ b/tests/test_datastores.py @@ -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')"