kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Test improvement - remove unnecessary step
rodzic
cf3a1ee3e3
commit
488699b7d4
|
|
@ -28,13 +28,9 @@ def test_error_handler(client, live_server):
|
|||
)
|
||||
assert b"1 Imported" in res.data
|
||||
|
||||
# Trigger a check
|
||||
client.get(url_for("form_watch_checknow"), follow_redirects=True)
|
||||
|
||||
# Give the thread time to pick it up
|
||||
time.sleep(3)
|
||||
|
||||
|
||||
res = client.get(url_for("index"))
|
||||
assert b'unviewed' not in res.data
|
||||
assert b'Status Code 403' in res.data
|
||||
|
|
@ -53,9 +49,6 @@ def test_error_text_handler(client, live_server):
|
|||
)
|
||||
assert b"1 Imported" in res.data
|
||||
|
||||
# Trigger a check
|
||||
client.get(url_for("form_watch_checknow"), follow_redirects=True)
|
||||
|
||||
# Give the thread time to pick it up
|
||||
time.sleep(3)
|
||||
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue