chore: clean up scheduling review diagnostics
This commit is contained in:
@@ -140,10 +140,9 @@ def test_candidate_is_at_most_one(tmp_path: Path) -> None:
|
||||
)
|
||||
store.save_candidate(first, schedule_id="a")
|
||||
store.save_candidate(second, schedule_id="a")
|
||||
assert store.get_candidate("a") is not None
|
||||
assert store.get_candidate("a").intended_at == datetime( # type: ignore[union-attr]
|
||||
2026, 9, 8, 13, 0, tzinfo=UTC
|
||||
)
|
||||
candidate = store.get_candidate("a")
|
||||
assert candidate is not None
|
||||
assert candidate.intended_at == datetime(2026, 9, 8, 13, 0, tzinfo=UTC)
|
||||
|
||||
|
||||
def test_history_pagination_over_resolved_utc(tmp_path: Path) -> None:
|
||||
@@ -163,12 +162,13 @@ def test_history_pagination_over_resolved_utc(tmp_path: Path) -> None:
|
||||
)
|
||||
page = store.list_occurrences("a", limit=2)
|
||||
assert page["total"] == 3
|
||||
assert page["next_cursor"] is not None
|
||||
assert "|" in str(page["next_cursor"])
|
||||
next_cursor = page["next_cursor"]
|
||||
assert isinstance(next_cursor, str)
|
||||
assert "|" in next_cursor
|
||||
assert len(page["occurrences"]) == 2 # type: ignore[arg-type]
|
||||
second = store.list_occurrences(
|
||||
"a",
|
||||
cursor=page["next_cursor"],
|
||||
cursor=next_cursor,
|
||||
limit=2, # type: ignore[arg-type]
|
||||
)
|
||||
assert second["next_cursor"] is None
|
||||
|
||||
Reference in New Issue
Block a user