X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5a15f6f4162ddda647b1ca9eec4e36f85f457056..6a1e5dde9ba28802a03c8a0a61c1dc13e2252c31:/apps/api/tests.py diff --git a/apps/api/tests.py b/apps/api/tests.py index 12c71260b..2c2e51ce8 100644 --- a/apps/api/tests.py +++ b/apps/api/tests.py @@ -122,6 +122,9 @@ class TagTests(TestCase): def setUp(self): self.tag = Tag.objects.create(category='author', slug='joe', name='Joe') + self.book = Book.objects.create(title='A Book', slug='a-book') + self.book.tags = [self.tag] + self.book.save() def test_tag_list(self): tags = json.loads(self.client.get('/api/authors/').content)