refactoring/fix tests

pull/14/head
JensDiemer 2020-11-01 16:40:08 +01:00
rodzic fa7b637f47
commit 77150715c4
8 zmienionych plików z 17 dodań i 10 usunięć

Wyświetl plik

@ -0,0 +1,13 @@
from inventory_project.settings.base import * # noqa
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
SECRET_KEY = 'No individual secret for tests ;)'
DEBUG = True

Wyświetl plik

@ -1,4 +0,0 @@
from inventory_project.settings import * # noqa
DEBUG = True

Wyświetl plik

@ -6,13 +6,11 @@ authors = ["JensDiemer <git@jensdiemer.de>"]
packages = [
{ include = "inventory" },
{ include = "inventory_project" },
{ include = "inventory_tests" },
]
keywords=['inventory','django']
classifiers = [
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 3 - Alpha",
# "Development Status :: 4 - Beta",
"Development Status :: 4 - Beta",
#"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: End Users/Desktop",

Wyświetl plik

@ -3,10 +3,10 @@
# https://pytest-django.readthedocs.io/en/latest/
[pytest]
DJANGO_SETTINGS_MODULE=inventory_tests.settings
DJANGO_SETTINGS_MODULE=inventory_project.settings.tests
testpaths =
inventory
inventory_tests
inventory/tests/
inventory_project/tests/
# http://doc.pytest.org/en/latest/customize.html#confval-norecursedirs
norecursedirs = .* .git __pycache__ coverage* dist