Clarify incomplete history readouts (#103)
This commit is contained in:
@@ -795,6 +795,11 @@ class TestHistoricalSelectionIdentity:
|
||||
(hour.isoformat(), (index + 1) * 1_000_000_000,
|
||||
(index + 1) * 2_000_000_000),
|
||||
)
|
||||
conn.execute(
|
||||
"UPDATE hour_observations SET coverage = 0.5, unknown_seconds = 1800 "
|
||||
"WHERE hour = ?",
|
||||
("2026-11-01T04:00:00+00:00",),
|
||||
)
|
||||
conn.commit()
|
||||
conn.close()
|
||||
app, patcher = _make_app(tmp_path, clock=clock)
|
||||
@@ -823,5 +828,10 @@ class TestHistoricalSelectionIdentity:
|
||||
assert "01:00 -0400" in first_occurrence
|
||||
assert "America/New_York -0400" in first_occurrence
|
||||
assert "05:00 UTC" in first_occurrence
|
||||
|
||||
await pilot.press("left")
|
||||
incomplete_hour = str(app.query_one("#bar-readout").render())
|
||||
assert "00:00 -0400" in incomplete_hour
|
||||
assert "50% coverage · incomplete" in incomplete_hour
|
||||
finally:
|
||||
patcher.stop()
|
||||
|
||||
Reference in New Issue
Block a user