From ce99ee9e9b20134c7e445fa21f371312a4084c11 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 18 Jun 2026 09:34:26 +0200 Subject: [PATCH] test fix --- changedetectionio/tests/test_access_control.py | 10 +++++----- changedetectionio/tests/test_basic_socketio.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/changedetectionio/tests/test_access_control.py b/changedetectionio/tests/test_access_control.py index 0f0b4b7e..41c3ce05 100644 --- a/changedetectionio/tests/test_access_control.py +++ b/changedetectionio/tests/test_access_control.py @@ -94,7 +94,7 @@ def test_check_access_control(app, client, live_server, measure_memory_usage, da follow_redirects=True ) - assert b"LOG OUT" not in res.data + assert b"/logout" not in res.data assert b"Incorrect password" in res.data @@ -111,7 +111,7 @@ def test_check_access_control(app, client, live_server, measure_memory_usage, da ) # Yes we are correctly logged in - assert b"LOG OUT" in res.data + assert b"/logout" in res.data # 598 - Password should be set and not accidently removed res = c.post( @@ -144,14 +144,14 @@ def test_check_access_control(app, client, live_server, measure_memory_usage, da ) # Yes we are correctly logged in - assert b"LOG OUT" in res.data + assert b"/logout" in res.data res = c.get(url_for("settings.settings_page")) # Menu should be available now (Settings/Import moved to sidebar-nav.html as translated mixed-case strings) assert b"Settings" in res.data assert b"Import" in res.data - assert b"LOG OUT" in res.data + assert b"/logout" in res.data assert b"time_between_check-minutes" in res.data assert b"fetch_backend" in res.data @@ -168,7 +168,7 @@ def test_check_access_control(app, client, live_server, measure_memory_usage, da follow_redirects=True, ) assert b"Password protection removed." in res.data - assert b"LOG OUT" not in res.data + assert b"/logout" not in res.data ############################################################ # Be sure a blank password doesnt setup password protection diff --git a/changedetectionio/tests/test_basic_socketio.py b/changedetectionio/tests/test_basic_socketio.py index f1585dc8..3d42310d 100644 --- a/changedetectionio/tests/test_basic_socketio.py +++ b/changedetectionio/tests/test_basic_socketio.py @@ -133,5 +133,5 @@ def test_everything(live_server, client, measure_memory_usage, datastore_path): ) # Yes we are correctly logged in - assert b"LOG OUT" in res.data + assert b"/logout" in res.data run_socketio_watch_update_test(password_mode="should be like normal", live_server=live_server, client=client, datastore_path=datastore_path)