-
Notifications
You must be signed in to change notification settings - Fork 35
/
pytest.ini
60 lines (50 loc) · 2.83 KB
/
pytest.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
[pytest]
# see python -W and pytest filterwarnings
# https://docs.python.org/3/using/cmdline.html#cmdoption-w
# https://docs.pytest.org/en/6.2.x/reference.html#ini-options-ref
filterwarnings =
# https://github.com/html5lib/html5lib-python/issues/443
ignore::DeprecationWarning:html5lib.filters.sanitizer
# don't let us regress on this:
error:tmpl_context.form_values:DeprecationWarning:tg.wsgiapp
error::pytest.PytestCollectionWarning
# other packages' issues:
ignore:Deprecated call to `pkg_resources.declare_namespace:DeprecationWarning:pkg_resources
ignore:pkg_resources is deprecated as an API:DeprecationWarning:tg.util.files
ignore:pkg_resources is deprecated as an API:DeprecationWarning:formencode
# supporting py3.9 still then can revert https://sourceforge.net/p/activitystream/code/ci/c0884668ac0f4445acb423edb25d18b7bd368be7/
ignore:SelectableGroups dict interface is deprecated. Use select.:DeprecationWarning:activitystream
# optional import within passlib
ignore:'crypt' is deprecated:DeprecationWarning:passlib.utils
ignore:Accessing argon2.__version__ is deprecated:DeprecationWarning:passlib.handlers.argon2
# py3.12
ignore::DeprecationWarning:smtpd
ignore:the imp module is deprecated:DeprecationWarning:mercurial.utils.resourceutil
# py3.13
ignore:'cgi' is deprecated:DeprecationWarning:webob.compat
ignore:'cgi' is deprecated:DeprecationWarning:formencode.validators
# https://github.com/pallets/jinja/issues/1156
error:invalid escape sequence::jinja2.lexer
addopts = --pyargs -p no:flaky --tb=short
# our patterns are listed first: then ".*" and following are defaults from https://github.com/pytest-dev/pytest/blob/main/src/_pytest/main.py#L52
norecursedirs = templates_responsive resources images js data docs public *.egg-info __pycache__ .* *.egg _darcs build CVS dist node_modules venv {arch}
# legacy|xunit1|xunit2
#junit_family = legacy
# no|log|system-out|system-err|out-err|all
junit_logging = all