X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;f=quotes%2Ftest_quotes.py;h=b194ec111e3f18d1c73bb9817de038df8957c0bc;hb=98fc1560b227794a7cbf26c1b00eaec8e7e51925;hp=ac53979f936f3214cf15adacdcc13c30e682d4e3;hpb=6bc7c03c1fa9c289e4fff457e5404bffbb595fe7;p=djsite.git diff --git a/quotes/test_quotes.py b/quotes/test_quotes.py index ac53979..b194ec1 100644 --- a/quotes/test_quotes.py +++ b/quotes/test_quotes.py @@ -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="

Quote02, no tags

", 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 = {}