mirror of
https://github.com/ansible/awx.git
synced 2026-06-27 01:18:02 -02:30
Compare commits
1 Commits
forward-po
...
test-runs-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6a5b05558 |
@@ -18,7 +18,7 @@ metadata:
|
|||||||
pipelines.appstudio.openshift.io/type: build
|
pipelines.appstudio.openshift.io/type: build
|
||||||
spec:
|
spec:
|
||||||
timeouts:
|
timeouts:
|
||||||
pipeline: "8h"
|
pipeline: "9h"
|
||||||
tasks: "7h"
|
tasks: "7h"
|
||||||
finally: "1h"
|
finally: "1h"
|
||||||
pipelineRef:
|
pipelineRef:
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
# This conftest registers pytest-django CLI options and INI keys as harmless
|
|
||||||
# no-ops so that the awxkit tox environment (which does not install Django or
|
|
||||||
# pytest-django) does not crash when the root pytest.ini config leaks through.
|
|
||||||
#
|
|
||||||
# Root pytest.ini contains settings like --reuse-db, --nomigrations, and
|
|
||||||
# DJANGO_SETTINGS_MODULE that are only meaningful for Django tests. Placing
|
|
||||||
# this conftest at the awxkit/ level ensures it is loaded before argument
|
|
||||||
# parsing regardless of which config file pytest ultimately selects.
|
|
||||||
|
|
||||||
|
|
||||||
def pytest_addoption(parser):
|
|
||||||
group = parser.getgroup("awxkit-compat", "awxkit tox compatibility shims")
|
|
||||||
group.addoption("--reuse-db", action="store_true", default=False, help="(no-op in awxkit) pytest-django compat")
|
|
||||||
group.addoption("--nomigrations", action="store_true", default=False, help="(no-op in awxkit) pytest-django compat")
|
|
||||||
group.addoption("--create-db", action="store_true", default=False, help="(no-op in awxkit) pytest-django compat")
|
|
||||||
parser.addini("DJANGO_SETTINGS_MODULE", help="(no-op in awxkit) pytest-django compat", default="")
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
[pytest]
|
|
||||||
addopts = -v --tb=native
|
|
||||||
testpaths = test
|
|
||||||
python_files = test_*.py
|
|
||||||
|
|
||||||
filterwarnings =
|
|
||||||
error
|
|
||||||
|
|
||||||
junit_family=xunit2
|
|
||||||
@@ -19,7 +19,7 @@ deps =
|
|||||||
pytest-mock
|
pytest-mock
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
coverage run --parallel --source awxkit -m pytest -c pytest.ini test --doctest-glob='*.md' --junit-xml=report.xml {posargs}
|
coverage run --parallel --source awxkit -m pytest --doctest-glob='*.md' --junit-xml=report.xml {posargs}
|
||||||
coverage combine
|
coverage combine
|
||||||
coverage xml
|
coverage xml
|
||||||
|
|
||||||
@@ -44,8 +44,6 @@ max-line-length = 120
|
|||||||
|
|
||||||
[pytest]
|
[pytest]
|
||||||
addopts = -v --tb=native
|
addopts = -v --tb=native
|
||||||
testpaths = test
|
|
||||||
python_files = test_*.py
|
|
||||||
|
|
||||||
filterwarnings =
|
filterwarnings =
|
||||||
error
|
error
|
||||||
|
|||||||
Reference in New Issue
Block a user