]> gitweb.fperrin.net Git - djsite.git/blobdiff - quotes/test_quotes.py
Fix link to work page
[djsite.git] / quotes / test_quotes.py
index ac53979f936f3214cf15adacdcc13c30e682d4e3..b194ec111e3f18d1c73bb9817de038df8957c0bc 100644 (file)
@@ -37,7 +37,7 @@ class Test_Views():
         a2 = Author.objects.create(name="Author without notes")
         w2 = Work.objects.create(name="Work without notes", author=a2)
         q2 = Quote.objects.create(text="<p>Quote02, no tags</p>", work=w2)
-        assert len(q2.tags.all()) == 0
+        assert q2.tags.all().count() == 0
 
     def test_all(self, c):
         content = c.getPage('all/')
@@ -51,6 +51,8 @@ class Test_Views():
             assert q.text in content
             assert q.notes in content
 
+        c.checkAllLinks('all/', content)
+
     @pytest.mark.slow
     def test_random(self, c):
         seen = {}