Create an actual user, add missing file
Also allow `./bw-dev up -d` I'm not sure why this was necessary, but it makes enough sense
This commit is contained in:
parent
48147883ce
commit
1e13997c5d
|
@ -0,0 +1,14 @@
|
|||
# Generated by Django 3.0.7 on 2021-01-14 03:48
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('bookwyrm', '0015_auto_20201128_0734'),
|
||||
('bookwyrm', '0035_edition_edition_rank'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
]
|
|
@ -19,7 +19,9 @@ class ReadThrough(TestCase):
|
|||
self.work.default_edition = self.edition
|
||||
self.work.save()
|
||||
|
||||
self.user = models.User.objects.create()
|
||||
self.user = models.User.objects.create_user(
|
||||
'cinco', 'cinco@example.com', 'seissiete',
|
||||
local=True, localname='cinco')
|
||||
|
||||
self.client.force_login(self.user)
|
||||
|
||||
|
|
Loading…
Reference in New Issue