Browse Source

fix tests which where broken

Oz N Tiram 9 năm trước cách đây
mục cha
commit
e72ece3112
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      tests/test_all.py

+ 3 - 1
tests/test_all.py

@@ -120,9 +120,11 @@ def test_find_new_posts_and_pages():
 
     assert len(DB.posts.all()) == 20
 
-    entries = [e for e in find_new_posts_and_pages(DB)]
+    new_entries = [e for e in find_new_posts_and_pages(DB)]
+
     # no new posts sould be found
     assert len(DB.posts.all()) == 20
+    assert len(new_entries) == 0
 
     [e[0].tags for e in entries]
     foo = DB.tags.search(where('name')=='foo')