Explorar o código

fix tests which where broken

Oz N Tiram %!s(int64=9) %!d(string=hai) anos
pai
achega
e72ece3112
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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')