Skip to content

Commit

Permalink
Move test settings to settings file (#15)
Browse files Browse the repository at this point in the history
Puts them in a more expceted place.
  • Loading branch information
adamchainz committed Sep 14, 2020
1 parent 5afdeed commit f376171
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
addopts =
--durations=20
-ra
--ds=tests.settings
--cov auto_prefetch
--cov-report=term-missing:skip-covered
--no-cov-on-fail
--cov-fail-under=100
django_find_project = false
8 changes: 0 additions & 8 deletions tests/conftest.py

This file was deleted.

15 changes: 15 additions & 0 deletions tests/settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import os

BASE_DIR = os.path.dirname(os.path.dirname(__file__))

SECRET_KEY = "NOTASECRET"

DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": ":memory:",
"ATOMIC_REQUESTS": True,
},
}

INSTALLED_APPS = ["tests"]

0 comments on commit f376171

Please sign in to comment.