Increase test coverage

This commit is contained in:
dgtlmoon
2025-07-03 12:36:36 +02:00
parent fd650955a8
commit 1a496add5b
2 changed files with 7 additions and 1 deletions
-1
View File
@@ -144,7 +144,6 @@ def construct_blueprint(datastore: ChangeDetectionStore, update_q, queuedWatchMe
# Use the current one if nothing was specified
to_version = request.args.get('to_version', str(dates[-1]))
try:
to_version_file_contents = watch.get_history_snapshot(timestamp=to_version)
except Exception as e:
@@ -426,6 +426,13 @@ def check_json_ext_filter(json_filter, client, live_server):
assert b'ForSale' not in res.data
assert b'Sold' in res.data
# And the difference should have both?
res = client.get(url_for("ui.ui_views.diff_history_page", uuid="first"))
assert b'ForSale' in res.data
assert b'Sold' in res.data
res = client.get(url_for("ui.form_delete", uuid="all"), follow_redirects=True)
assert b'Deleted' in res.data