Skip to content

Commit

Permalink
one test missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ychiucco committed Jun 13, 2024
1 parent bb0275d commit a22c85b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/v1/03_db/test_unit_db_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit a22c85b

Please sign in to comment.