From 8d476804c2041e526524265309eefa8390a87aeb Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 1 Aug 2021 07:38:16 -0700 Subject: [PATCH] Potential speedups --- .github/workflows/django-tests.yml | 4 ++-- bookwyrm/test_settings.py | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 bookwyrm/test_settings.py diff --git a/.github/workflows/django-tests.yml b/.github/workflows/django-tests.yml index 9a801dd7..8ee1cea5 100644 --- a/.github/workflows/django-tests.yml +++ b/.github/workflows/django-tests.yml @@ -35,7 +35,7 @@ jobs: - name: Run Tests env: SECRET_KEY: beepbeep - DEBUG: true + DEBUG: false DOMAIN: your.domain.here BOOKWYRM_DATABASE_BACKEND: postgres MEDIA_ROOT: images/ @@ -53,4 +53,4 @@ jobs: EMAIL_USE_TLS: true ENABLE_PREVIEW_IMAGES: true run: | - pytest + pytest --reuse-db diff --git a/bookwyrm/test_settings.py b/bookwyrm/test_settings.py new file mode 100644 index 00000000..5dc34c97 --- /dev/null +++ b/bookwyrm/test_settings.py @@ -0,0 +1,14 @@ +""" bookwyrm settings and configuration """ +from bookwyrm.settings import * + +MIGRATION_MODULES = { + 'auth': None, + 'contenttypes': None, + 'default': None, + 'sessions': None, + + 'core': None, + 'profiles': None, + 'snippets': None, + 'scaffold_templates': None, +}