From e11c6aeb5f3e0b10513d63ff52651e9488faed16 Mon Sep 17 00:00:00 2001 From: Brandon Wees Date: Thu, 27 Oct 2022 10:59:14 -0400 Subject: [PATCH] Apply suggestions from code review Co-authored-by: dgtlmoon --- changedetectionio/tests/test_diff_filter_only_deletions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changedetectionio/tests/test_diff_filter_only_deletions.py b/changedetectionio/tests/test_diff_filter_only_deletions.py index 34119631..3bdcb005 100644 --- a/changedetectionio/tests/test_diff_filter_only_deletions.py +++ b/changedetectionio/tests/test_diff_filter_only_deletions.py @@ -66,8 +66,8 @@ def test_diff_filtering_no_add(client, live_server): # We should NOT see the change res = client.get(url_for("index")) # save res.data to a file - with open("./test-index.html", "w") as f: - f.write(res.data.decode("utf-8")) + + assert b'unviewed' not in res.data