kopia lustrzana https://github.com/jedie/PyInventory
refactoring/fix tests
rodzic
fa7b637f47
commit
77150715c4
|
@ -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
|
|
@ -1,4 +0,0 @@
|
|||
from inventory_project.settings import * # noqa
|
||||
|
||||
|
||||
DEBUG = True
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue