Skip to content
Snippets Groups Projects
Commit 7a2569bf authored by Renaud Boyer's avatar Renaud Boyer
Browse files

packaging: move pytest config to pyproject.toml

parent ae0aedd9
No related branches found
No related tags found
1 merge request!1320packaging: Centralize python related settings in pyproject.toml
......@@ -62,3 +62,26 @@ ignore = "H006,H020,H021,H023,H029,H030,H031"
indent = 2
blank_line_after_tag = "endcomment,extends,load,endblock"
max_line_length = 100
[tool.pytest.ini_options]
addopts = """
-p no:flask
-p no:pytest_swh_storage
-p swh.web.tests.pytest_plugin
--ignore-glob=*random_fixtures_test.py
--ignore-glob=*create_test_*.py
--strict-markers
"""
norecursedirs = "build docs node_modules resources .tox"
DJANGO_SETTINGS_MODULE = "swh.web.settings.tests"
filterwarnings = """
ignore:.*Plural value must be an integer, got float
ignore:.*Using or importing the ABCs from 'collections'
ignore:.*uses the.*fixture, which is reset between function calls
ignore:.*'U' mode is deprecated
ignore:.*FORMS_URLFIELD_ASSUME_HTTPS transitional setting is deprecated.
"""
consider_namespace_packages = true
markers = """
inbound_message: used to pass a message parameter to the inbound_message fixture
"""
\ No newline at end of file
[pytest]
addopts =
-p no:flask
-p no:pytest_swh_storage
-p swh.web.tests.pytest_plugin
--ignore-glob=*random_fixtures_test.py
--ignore-glob=*create_test_*.py
--strict-markers
norecursedirs = build docs node_modules resources .tox
DJANGO_SETTINGS_MODULE = swh.web.settings.tests
filterwarnings =
ignore:.*Plural value must be an integer, got float
ignore:.*Using or importing the ABCs from 'collections'
ignore:.*uses the.*fixture, which is reset between function calls
ignore:.*'U' mode is deprecated
ignore:.*FORMS_URLFIELD_ASSUME_HTTPS transitional setting is deprecated.
consider_namespace_packages = true
markers =
inbound_message: used to pass a message parameter to the inbound_message fixture
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment