mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
* provides: base override class; unittest and pytest overrides * raise invalid config error earlier * update AUTHORS * avoid AttributeError * fix comment * add tests * fix tests, update docstring * update docs, improve tests * fix docs * fix markdown * refactor pytest override, use hidden fixture, refactor base and unittest classes * improve docstring and error * refactor pytest override to use hooks * set minimum pytest version * revert empty lines removal * introduce pytest test runner for package, refactoring * WIP * Finalize tox config, refactor docs, add global fixture * skip py35 * pytest command: remove unnecessary ignore * address comments * Update constance/test/pytest.py * address comments * add test for checking nested markers Co-authored-by: Camilo Nova <camilo.nova@gmail.com> Co-authored-by: Paweł Zarębski <ppjzarebski@gmail.com>
28 lines
756 B
INI
28 lines
756 B
INI
[tox]
|
|
envlist =
|
|
py{35,36,37,pypy3}-django{22}-unittest
|
|
py{36,37,38}-django{30,-master}-unittest
|
|
py{36,37,38,pypy3}-django{22,30,-master}-pytest
|
|
|
|
[testenv]
|
|
deps =
|
|
redis
|
|
coverage
|
|
mock
|
|
django-picklefield
|
|
django-22: Django>=2.2,<3.0
|
|
django-30: Django>=3.0,<3.1
|
|
django-master: https://github.com/django/django/archive/master.tar.gz
|
|
pytest: pytest
|
|
pytest: pytest-cov
|
|
pytest: pytest-django
|
|
usedevelop = True
|
|
ignore_outcome =
|
|
django-master: True
|
|
commands =
|
|
unittest: coverage run {envbindir}/django-admin test -v2
|
|
unittest: coverage report
|
|
pytest: pytest --cov=. --ignore=.tox --disable-pytest-warnings {toxinidir}
|
|
setenv =
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
DJANGO_SETTINGS_MODULE=tests.settings
|