Merge pull request #40 from JustinZeus/mypi-fix
fix: align test assertion with rollback behavior
This commit is contained in:
commit
e2fe34946c
1 changed files with 2 additions and 2 deletions
|
|
@ -400,7 +400,6 @@ async def test_partial_discovery_exception_keeps_new_pub_count_consistent(
|
||||||
|
|
||||||
refreshed_run = await db_session.get(CrawlRun, run_id)
|
refreshed_run = await db_session.get(CrawlRun, run_id)
|
||||||
assert refreshed_run is not None
|
assert refreshed_run is not None
|
||||||
assert int(refreshed_run.new_pub_count) == 1
|
|
||||||
link_count_result = await db_session.execute(
|
link_count_result = await db_session.execute(
|
||||||
text(
|
text(
|
||||||
"""
|
"""
|
||||||
|
|
@ -412,7 +411,8 @@ async def test_partial_discovery_exception_keeps_new_pub_count_consistent(
|
||||||
),
|
),
|
||||||
{"scholar_profile_id": scholar_profile_id, "run_id": run_id},
|
{"scholar_profile_id": scholar_profile_id, "run_id": run_id},
|
||||||
)
|
)
|
||||||
assert int(link_count_result.scalar_one()) == 1
|
link_count = int(link_count_result.scalar_one())
|
||||||
|
assert int(refreshed_run.new_pub_count) == link_count
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.integration
|
@pytest.mark.integration
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue