From 1e13997c5db8aecf78008914fbd4e3f12608b472 Mon Sep 17 00:00:00 2001 From: Joel Bradshaw Date: Wed, 13 Jan 2021 23:02:56 -0800 Subject: [PATCH] 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 --- bookwyrm/migrations/0036_merge_20210114_0348.py | 14 ++++++++++++++ bookwyrm/tests/actions/test_readthrough.py | 4 +++- bw-dev | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 bookwyrm/migrations/0036_merge_20210114_0348.py diff --git a/bookwyrm/migrations/0036_merge_20210114_0348.py b/bookwyrm/migrations/0036_merge_20210114_0348.py new file mode 100644 index 000000000..6dd1a7750 --- /dev/null +++ b/bookwyrm/migrations/0036_merge_20210114_0348.py @@ -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 = [ + ] diff --git a/bookwyrm/tests/actions/test_readthrough.py b/bookwyrm/tests/actions/test_readthrough.py index c764fac36..fb16edcb7 100644 --- a/bookwyrm/tests/actions/test_readthrough.py +++ b/bookwyrm/tests/actions/test_readthrough.py @@ -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) diff --git a/bw-dev b/bw-dev index 978f48c55..f3162bd36 100755 --- a/bw-dev +++ b/bw-dev @@ -43,7 +43,7 @@ set -x case "$CMD" in up) - docker-compose up --build + docker-compose up --build "$@" ;; run) docker-compose run --rm --service-ports web