Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ jobs:

frontend:
name: Frontend
runs-on: ubuntu-latest
# Pinned: Playwright 1.56.1 cannot install Chromium on the ubuntu-latest image
# (ubuntu 26.04, "Playwright does not support chromium on ubuntu26.04-x64").
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
with:
Expand Down
7 changes: 6 additions & 1 deletion tests/safety/test_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ def test_next_day_resume_is_strictly_later_and_within_48_hours(now: datetime, ho
policy = OverridePolicy(resume_time=datetime(2000, 1, 1, hour).time()) # noqa: DTZ001
resume = overrides.resume_at(policy, now, BERLIN)
assert now < resume <= now + timedelta(hours=48)
assert resume.astimezone(BERLIN).hour == hour
local = resume.astimezone(BERLIN)
# On the spring-forward day the wall time in the DST gap does not exist (02:xx in
# Berlin); it resolves to the same instant one hour later on the clock.
wall = datetime(local.year, local.month, local.day, hour, tzinfo=BERLIN)
in_gap = wall.astimezone(UTC).astimezone(BERLIN).hour != hour
assert local.hour == (hour + 1 if in_gap else hour)


def test_hold_resume_expire() -> None:
Expand Down
Loading