fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wyszukiwanie książek działa - narazie bez agregowania fragmentów.
[wolnelektury.git]
/
apps
/
api
/
tests.py
diff --git
a/apps/api/tests.py
b/apps/api/tests.py
index
12c7126
..
2c2e51c
100644
(file)
--- 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')
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)
def test_tag_list(self):
tags = json.loads(self.client.get('/api/authors/').content)