From 0c87e62e107de1ed4b80cf466eca3d55b9564feb Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 13 Jan 2026 16:21:01 +0100 Subject: [PATCH] Test tweak --- changedetectionio/tests/test_live_preview.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/changedetectionio/tests/test_live_preview.py b/changedetectionio/tests/test_live_preview.py index 8c8f874b2..b9c26be3b 100644 --- a/changedetectionio/tests/test_live_preview.py +++ b/changedetectionio/tests/test_live_preview.py @@ -25,12 +25,13 @@ def test_content_filter_live_preview(client, live_server, measure_memory_usage, test_url = url_for('test_endpoint', _external=True) - res = client.post( - url_for("ui.ui_views.form_quick_watch_add"), - data={"url": test_url, "tags": ''}, - follow_redirects=True - ) - uuid = next(iter(live_server.app.config['DATASTORE'].data['watching'])) + + uuid = client.application.config.get('DATASTORE').add_watch(url=test_url) + res = client.get(url_for("ui.form_watch_checknow"), follow_redirects=True) + assert b'Queued 1 watch for rechecking.' in res.data + + wait_for_all_checks(client) + res = client.post( url_for("ui.ui_edit.edit_page", uuid=uuid), data={