Seconds/minutes/hours/days between checks form field upgrade from 'minutes' only (#512)

This commit is contained in:
dgtlmoon
2022-04-24 16:56:32 +02:00
committed by GitHub
parent 1e8aa6158b
commit 9e708810d1
20 changed files with 227 additions and 207 deletions

View File

@@ -13,7 +13,7 @@ def test_check_access_control(app, client):
res = c.post(
url_for("settings_page"),
data={"application-password": "foobar",
"requests-minutes_between_check": 180,
"requests-time_between_check-minutes": 180,
'application-fetch_backend': "html_requests"},
follow_redirects=True
)
@@ -46,7 +46,7 @@ def test_check_access_control(app, client):
assert b"BACKUP" in res.data
assert b"IMPORT" in res.data
assert b"LOG OUT" in res.data
assert b"minutes_between_check" in res.data
assert b"time_between_check-minutes" in res.data
assert b"fetch_backend" in res.data
##################################################
@@ -55,7 +55,7 @@ def test_check_access_control(app, client):
res = c.post(
url_for("settings_page"),
data={
"requests-minutes_between_check": 180,
"requests-time_between_check-minutes": 180,
"application-fetch_backend": "html_webdriver",
"application-removepassword_button": "Remove password"
},
@@ -70,7 +70,7 @@ def test_check_access_control(app, client):
res = c.post(
url_for("settings_page"),
data={"application-password": "",
"requests-minutes_between_check": 180,
"requests-time_between_check-minutes": 180,
'application-fetch_backend': "html_requests"},
follow_redirects=True
)