diff --git a/tests/core/test_monitors_page.py b/tests/core/test_monitors_page.py index cf64530..b12f628 100644 --- a/tests/core/test_monitors_page.py +++ b/tests/core/test_monitors_page.py @@ -93,7 +93,7 @@ async def test_the_monitor_page_says_since_when_and_why(app): session["user_role"] = "admin" page = await render_template( "monitors/detail.html", monitor=m, host=None, latest=down, failures=[down], state="down", - since=NOW - timedelta(minutes=12), since_at_least=False, tls_days=None, + since=datetime.now(timezone.utc) - timedelta(minutes=12), since_at_least=False, tls_days=None, uptime={"24h": 93.0, "7d": None, "30d": 99.5}, heartbeat=[{"state": "up", "title": "a"}, {"state": "down", "title": "b"}]) assert 'Monitors' in page and "shop <api>" in page