forked from mirrors/bookwyrm
Avoid clash with existing test data user
This commit is contained in:
parent
6745cd73cc
commit
5b75f3d310
1 changed files with 4 additions and 4 deletions
|
@ -37,11 +37,11 @@ class FeedViews(TestCase):
|
||||||
localname="mouse",
|
localname="mouse",
|
||||||
)
|
)
|
||||||
self.another_user = models.User.objects.create_user(
|
self.another_user = models.User.objects.create_user(
|
||||||
"rat@local.com",
|
"nutria@local.com",
|
||||||
"rat@rat.rat",
|
"nutria@nutria.nutria",
|
||||||
"password",
|
"password",
|
||||||
local=True,
|
local=True,
|
||||||
localname="rat",
|
localname="nutria",
|
||||||
)
|
)
|
||||||
self.book = models.Edition.objects.create(
|
self.book = models.Edition.objects.create(
|
||||||
parent_work=models.Work.objects.create(title="hi"),
|
parent_work=models.Work.objects.create(title="hi"),
|
||||||
|
@ -183,7 +183,7 @@ class FeedViews(TestCase):
|
||||||
view = views.DirectMessage.as_view()
|
view = views.DirectMessage.as_view()
|
||||||
request = self.factory.get("")
|
request = self.factory.get("")
|
||||||
request.user = self.local_user
|
request.user = self.local_user
|
||||||
result = view(request, "rat")
|
result = view(request, "nutria")
|
||||||
self.assertIsInstance(result, TemplateResponse)
|
self.assertIsInstance(result, TemplateResponse)
|
||||||
result.render()
|
result.render()
|
||||||
self.assertEqual(result.status_code, 200)
|
self.assertEqual(result.status_code, 200)
|
||||||
|
|
Loading…
Reference in a new issue