Skip to content

Commit

Permalink
tests: update rescan
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Jan 29, 2025
1 parent 9ae3734 commit 8491564
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/integration/test_rest_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,12 @@ async def test_010__rescan(
**manifest_alpha["classifiers"],
**{"rescan": True, "origin_scan_id": manifest_alpha["scan_id"]},
}
assert manifest_beta == manifest_alpha
skip_keys = ["classifiers", "scan_id", "last_updated", "timestamp"]
assert {k: v for k, v in manifest_beta.items() if k not in skip_keys} == {
k: v for k, v in manifest_alpha.items() if k not in skip_keys
}
for sk in skip_keys:
assert manifest_beta[sk] != manifest_alpha[sk]
# continue on...
await _after_scan_start_logic(
rc,
Expand Down

0 comments on commit 8491564

Please sign in to comment.