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:
Joel Bradshaw 2021-01-13 23:02:56 -08:00
parent 48147883ce
commit 1e13997c5d
3 changed files with 18 additions and 2 deletions

View file

@ -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 = [
]

View file

@ -19,7 +19,9 @@ class ReadThrough(TestCase):
self.work.default_edition = self.edition self.work.default_edition = self.edition
self.work.save() 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) self.client.force_login(self.user)

2
bw-dev
View file

@ -43,7 +43,7 @@ set -x
case "$CMD" in case "$CMD" in
up) up)
docker-compose up --build docker-compose up --build "$@"
;; ;;
run) run)
docker-compose run --rm --service-ports web docker-compose run --rm --service-ports web