OpenSlides/server/setup.cfg
Finn Stutzenstein f897bb01a3
Enable pytest in docker
The DJANGO_SETTINGS_MODULE is set in the develop container, so the
tests.settings from the setup.cfg was ignored. Executing pytest with

    DJANGO_SETTINGS_MODULE=tests.settings pytest

works fine. The line added in the setup.cfg takes over precedence: It
auto-adds the --ds parameter which has a higher precedence than the
environment variable.

Also removed an unnecessary setting.
2021-03-22 13:01:26 +01:00

41 lines
816 B
INI

[coverage:run]
source = openslides
omit =
openslides/core/management/commands/*.py
openslides/users/management/commands/*.py
[coverage:html]
directory = personal_data/tmp/htmlcov
[flake8]
max_line_length = 150
[isort]
include_trailing_comma = true
multi_line_output = 3
lines_after_imports = 2
combine_as_imports = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
known_first_party = openslides
known_third_party = pytest,onelogin
[mypy]
ignore_missing_imports = true
strict_optional = true
check_untyped_defs = true
[mypy-openslides.utils.*]
disallow_untyped_defs = true
[mypy-openslides.core.config]
disallow_untyped_defs = true
[tool:pytest]
DJANGO_SETTINGS_MODULE = tests.settings
addopts = --ds=tests.settings
testpaths = tests/
filterwarnings =
ignore:RemovedInDjango30Warning