From a22c85b1e65b3811e77030ec5c62802576c898a0 Mon Sep 17 00:00:00 2001 From: Yuri Chiucconi Date: Thu, 13 Jun 2024 11:37:52 +0200 Subject: [PATCH] one test missing --- tests/v1/03_db/test_unit_db_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/v1/03_db/test_unit_db_models.py b/tests/v1/03_db/test_unit_db_models.py index f8fb863858..539b2fc754 100644 --- a/tests/v1/03_db/test_unit_db_models.py +++ b/tests/v1/03_db/test_unit_db_models.py @@ -155,7 +155,7 @@ async def test_project_and_workflows(db): await db.delete(db_project) DB_ENGINE = Inject(get_settings).DB_ENGINE - if DB_ENGINE == "postgres": + if DB_ENGINE in ["postgres", "postgres-psycopg"]: with pytest.raises(IntegrityError): # Workflow.project_id violates fk-contraint in Postgres await db.commit() @@ -310,7 +310,7 @@ async def test_project_and_datasets(db): await db.delete(db_project) DB_ENGINE = Inject(get_settings).DB_ENGINE - if DB_ENGINE == "postgres": + if DB_ENGINE in ["postgres", "postgres-psycopg"]: with pytest.raises(IntegrityError): # Dataset.project_id violates fk-contraint in Postgres await db.commit()