mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-07-08 08:21:14 +00:00
test fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user