forked from ansible/ansible-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pytest.ini
62 lines (57 loc) · 2.43 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
61
62
# spell-checker:ignore filterwarnings norecursedirs optionflags
[pytest]
# do not add options here as this will likely break either console runs or IDE
# integration like vscode or pycharm
addopts =
# https://code.visualstudio.com/docs/python/testing
# coverage is re-enabled in `tox.ini`. That approach is safer than
# `--no-cov` which prevents activation from tox.ini and which also fails
# when plugin is effectively missing.
-p no:pytest_cov
doctest_optionflags = ALLOW_UNICODE ELLIPSIS
filterwarnings =
error
# Ansible originated
ignore:The _yaml extension module is now located at yaml._yaml and its location is subject to change:DeprecationWarning:
# Ansible insides on py310:
ignore:_SixMetaPathImporter:ImportWarning
ignore:_AnsibleCollectionFinder:ImportWarning
ignore:_AnsibleCollectionRootPkgLoader:ImportWarning
ignore:_AnsibleCollectionNSPkgLoader.exec_module:ImportWarning
ignore:_AnsibleCollectionPkgLoader.exec_module:ImportWarning
ignore:_AnsiblePathHookFinder.find_spec:ImportWarning
ignore:The distutils package is deprecated and slated for removal:DeprecationWarning
# TODO: delete the following ignores once Ansible that we support gets rid of `imp`
# Ref: https://github.com/ansible-community/ansible-lint/pull/734
ignore:the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses:DeprecationWarning:ansible.plugins.loader
junit_duration_report = call
# Our github annotation parser from .github/workflows/tox.yml requires xunit1 format. Ref:
# https://github.com/shyim/junit-report-annotations-action/issues/3#issuecomment-663241378
junit_family = xunit1
junit_suite_name = ansible_lint_test_suite
minversion = 4.6.6
norecursedirs =
build
dist
docs
src/ansible_lint.egg-info
.cache
.eggs
.git
.github
.tox
*.egg
python_files =
test_*.py
# Ref: https://docs.pytest.org/en/latest/reference.html#confval-python_files
# Needed to discover legacy nose test modules:
Test*.py
# Needed to discover embedded Rule tests
rules/*.py
# Using --pyargs instead of testpath as we embed some tests
# See: https://github.com/pytest-dev/pytest/issues/6451#issuecomment-687043537
# testpaths =
xfail_strict = true
markers =
eco: Tests effects on a set of 3rd party ansible repositories
formatting_fixtures: Test that regenerates and tests formatting fixtures (requires prettier on PATH)