浏览代码

fix tests which where broken

Oz N Tiram 9 年之前
父节点
当前提交
e72ece3112
共有 1 个文件被更改,包括 3 次插入1 次删除
  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')