Skip to content

Commit 5ff7d08

Browse files
improve
1 parent f02fe84 commit 5ff7d08

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/postgres-database/tests/test_utils_comp_runs.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ async def test_get_latest_run_id_for_project_no_runs(
128128
):
129129
import uuid
130130

131-
with pytest.raises(ValueError, match="did not return any row") as exc:
132-
await get_latest_run_id_for_project(
133-
asyncpg_engine, project_id=str(uuid.uuid4())
134-
)
135-
assert "did not return any row" in str(exc.value)
131+
output = await get_latest_run_id_for_project(
132+
asyncpg_engine, project_id=str(uuid.uuid4())
133+
)
134+
assert output is None

0 commit comments

Comments
 (0)