Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-web
Commits
7a2569bf
Commit
7a2569bf
authored
7 months ago
by
Renaud Boyer
Browse files
Options
Downloads
Patches
Plain Diff
packaging: move pytest config to pyproject.toml
parent
ae0aedd9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1320
packaging: Centralize python related settings in pyproject.toml
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyproject.toml
+23
-0
23 additions, 0 deletions
pyproject.toml
pytest.ini
+0
-19
0 additions, 19 deletions
pytest.ini
with
23 additions
and
19 deletions
pyproject.toml
+
23
−
0
View file @
7a2569bf
...
...
@@ -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
This diff is collapsed.
Click to expand it.
pytest.ini
deleted
100644 → 0
+
0
−
19
View file @
ae0aedd9
[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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment