Parametrise a test
This commit is contained in:
parent
aae7b87207
commit
9b3ab6d1e8
1 changed files with 2 additions and 1 deletions
|
@ -60,7 +60,8 @@ class AdminTest(BaseTest):
|
|||
post_admin = admin.site._registry[Post]
|
||||
post_admin.add_view(request)
|
||||
self.assertEqual(Post.objects.count(), 1)
|
||||
self.assertEqual(Post.objects.get(translations__slug='first-post').author_id, 1)
|
||||
self.assertEqual(Post.objects.get(translations__slug='first-post').author_id,
|
||||
request.user.pk)
|
||||
|
||||
with self.settings(BLOG_AUTHOR_DEFAULT=False):
|
||||
data = deepcopy(self.data['en'][1])
|
||||
|
|
Loading…
Reference in a new issue