From 186dbcebba7315f92bbb4bc2119c04e9869afad5 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 17 Nov 2023 16:54:44 +0100 Subject: [PATCH] minor test --- changedetectionio/tests/unit/test_watch_model.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/changedetectionio/tests/unit/test_watch_model.py b/changedetectionio/tests/unit/test_watch_model.py index 6c7f15ae..78ca60b2 100644 --- a/changedetectionio/tests/unit/test_watch_model.py +++ b/changedetectionio/tests/unit/test_watch_model.py @@ -41,6 +41,11 @@ class TestDiffBuilder(unittest.TestCase): p = watch.get_next_snapshot_key_to_last_viewed assert p == "115", "When the 'last viewed' timestamp is greater than the newest snapshot, return second last " + watch['last_viewed'] = 109 + p = watch.get_next_snapshot_key_to_last_viewed + assert p == "109", "Correct when its the same time" + + # new empty one watch = Watch.model(datastore_path='/tmp', default={}) p = watch.get_next_snapshot_key_to_last_viewed assert p == None, "None when no history available"