Skip to content
Snippets Groups Projects
Commit 242b0b48 authored by jan.bednarik's avatar jan.bednarik
Browse files

Tox and testing setup

parent c91dcf27
Branches
Tags
No related merge requests found
[run]
branch = true
source =
pirates
tests
parallel = true
[report]
show_missing = true
omit = *migrations/*, tests/*
pytest
pytest-cov
pytest-factoryboy
pytest-django
SECRET_KEY = "can you keep a secret?"
DEBUG = True
USE_TZ = True
CACHES = {"default": {"BACKEND": "django.core.cache.backends.locmem.LocMemCache",}}
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3",}}
ROOT_URLCONF = "pirates.urls"
INSTALLED_APPS = [
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.sites",
"mozilla_django_oidc",
"pirates",
]
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
MIDDLEWARE = []
OIDC_USERNAME_ALGO = None
tox.ini 0 → 100644
[tox]
envlist =
py{36,37,38}-django300
[testenv]
deps =
-r{toxinidir}/tests/requirements.txt
django300: Django>=3.0.0,<3.1
setenv =
PYTHONPATH = {toxinidir}
PYTHONUNBUFFERED = yes
passenv =
*
usedevelop = false
commands =
{posargs:pytest --cov -vv tests}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment