From 969d8976a1b70181bf483127ce197a78dab3862c Mon Sep 17 00:00:00 2001 From: Max Berger Date: Thu, 26 Mar 2026 22:29:37 +0100 Subject: [PATCH] Fix flakyness in basic integ test --- integ_tests/test_basic_operation.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/integ_tests/test_basic_operation.py b/integ_tests/test_basic_operation.py index e802a325..a9952aa9 100644 --- a/integ_tests/test_basic_operation.py +++ b/integ_tests/test_basic_operation.py @@ -45,8 +45,12 @@ def test_index_html_loads(page: Page, radicale_server: str, config: Config) -> N page.on("console", lambda msg: console_msgs.append(msg.text)) page.goto(radicale_server) expect(page).to_have_title("Radicale Web Interface") - # There should be no errors on the console, except for the expected 401 from auto-login check - errors = [msg for msg in console_msgs if "401 (Unauthorized)" not in msg] + # There should be no errors on the console, except for the expected 401/403 from auto-login check + errors = [ + msg + for msg in console_msgs + if "401 (Unauthorized)" not in msg and "403 (Forbidden)" not in msg + ] assert len(errors) == 0