pytest-argus-reporter 0.15.6__tar.gz → 0.15.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytest_argus_reporter-0.15.6/pytest_argus_reporter.egg-info → pytest_argus_reporter-0.15.8}/PKG-INFO +2 -3
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/pyproject.toml +1 -2
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8/pytest_argus_reporter.egg-info}/PKG-INFO +2 -3
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/pytest_argus_reporter.egg-info/requires.txt +1 -2
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/pytest_argus_reporter.py +2 -1
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/tests/test_argus_reporter.py +4 -4
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/.envrc +0 -0
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/LICENSE +0 -0
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/MANIFEST.in +0 -0
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/README.md +0 -0
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/noxfile.py +0 -0
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/pytest_argus_reporter.egg-info/SOURCES.txt +0 -0
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/pytest_argus_reporter.egg-info/dependency_links.txt +0 -0
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/pytest_argus_reporter.egg-info/entry_points.txt +0 -0
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/pytest_argus_reporter.egg-info/top_level.txt +0 -0
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/setup.cfg +0 -0
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/tests/conftest.py +0 -0
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/tests/test_slices.py +0 -0
- {pytest_argus_reporter-0.15.6 → pytest_argus_reporter-0.15.8}/tests/test_xdist.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-argus-reporter
|
|
3
|
-
Version: 0.15.
|
|
3
|
+
Version: 0.15.8
|
|
4
4
|
Summary: A simple plugin to report results of test into argus
|
|
5
5
|
Author-email: Scylladb <qa@scylladb.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -22,14 +22,13 @@ License-File: LICENSE
|
|
|
22
22
|
Requires-Dist: argus-alm
|
|
23
23
|
Requires-Dist: six>=1.10.0
|
|
24
24
|
Provides-Extra: dev
|
|
25
|
-
Requires-Dist: pytest
|
|
25
|
+
Requires-Dist: pytest~=9.0.0; extra == "dev"
|
|
26
26
|
Requires-Dist: pre-commit; extra == "dev"
|
|
27
27
|
Requires-Dist: requests-mock; extra == "dev"
|
|
28
28
|
Requires-Dist: codecov; extra == "dev"
|
|
29
29
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
30
30
|
Requires-Dist: nox; extra == "dev"
|
|
31
31
|
Requires-Dist: pytest-xdist; extra == "dev"
|
|
32
|
-
Requires-Dist: pytest-subtests; extra == "dev"
|
|
33
32
|
Requires-Dist: ruff; extra == "dev"
|
|
34
33
|
Requires-Dist: autopep8; extra == "dev"
|
|
35
34
|
Dynamic: license-file
|
|
@@ -46,14 +46,13 @@ argus-reporter = "pytest_argus_reporter"
|
|
|
46
46
|
|
|
47
47
|
[project.optional-dependencies]
|
|
48
48
|
dev = [
|
|
49
|
-
"pytest
|
|
49
|
+
"pytest ~= 9.0.0",
|
|
50
50
|
"pre-commit",
|
|
51
51
|
"requests-mock",
|
|
52
52
|
"codecov",
|
|
53
53
|
"pytest-cov",
|
|
54
54
|
"nox",
|
|
55
55
|
"pytest-xdist",
|
|
56
|
-
"pytest-subtests",
|
|
57
56
|
"ruff",
|
|
58
57
|
"autopep8",
|
|
59
58
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-argus-reporter
|
|
3
|
-
Version: 0.15.
|
|
3
|
+
Version: 0.15.8
|
|
4
4
|
Summary: A simple plugin to report results of test into argus
|
|
5
5
|
Author-email: Scylladb <qa@scylladb.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -22,14 +22,13 @@ License-File: LICENSE
|
|
|
22
22
|
Requires-Dist: argus-alm
|
|
23
23
|
Requires-Dist: six>=1.10.0
|
|
24
24
|
Provides-Extra: dev
|
|
25
|
-
Requires-Dist: pytest
|
|
25
|
+
Requires-Dist: pytest~=9.0.0; extra == "dev"
|
|
26
26
|
Requires-Dist: pre-commit; extra == "dev"
|
|
27
27
|
Requires-Dist: requests-mock; extra == "dev"
|
|
28
28
|
Requires-Dist: codecov; extra == "dev"
|
|
29
29
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
30
30
|
Requires-Dist: nox; extra == "dev"
|
|
31
31
|
Requires-Dist: pytest-xdist; extra == "dev"
|
|
32
|
-
Requires-Dist: pytest-subtests; extra == "dev"
|
|
33
32
|
Requires-Dist: ruff; extra == "dev"
|
|
34
33
|
Requires-Dist: autopep8; extra == "dev"
|
|
35
34
|
Dynamic: license-file
|
|
@@ -13,6 +13,7 @@ import fnmatch
|
|
|
13
13
|
import concurrent.futures
|
|
14
14
|
import json
|
|
15
15
|
from json import JSONDecodeError
|
|
16
|
+
from functools import cached_property
|
|
16
17
|
|
|
17
18
|
import six
|
|
18
19
|
import pytest
|
|
@@ -180,7 +181,7 @@ class ArgusReporter(object): # pylint: disable=too-many-instance-attributes
|
|
|
180
181
|
self.is_slave = False
|
|
181
182
|
self.slices_query_fields = dict()
|
|
182
183
|
|
|
183
|
-
@
|
|
184
|
+
@cached_property
|
|
184
185
|
def argus_client(self):
|
|
185
186
|
return ArgusGenericClient(auth_token=self.api_key, base_url=self.base_url, extra_headers=self.extra_headers)
|
|
186
187
|
|
|
@@ -462,9 +462,9 @@ def test_subtests(testdir, requests_mock): # pylint: disable=redefined-outer-na
|
|
|
462
462
|
result = testdir.runpytest("--argus-post-reports", "-v")
|
|
463
463
|
|
|
464
464
|
# fnmatch_lines does an assertion internally
|
|
465
|
-
result.stdout.fnmatch_lines(["*::test_failing_subtests
|
|
466
|
-
result.stdout.fnmatch_lines(["*::test_failing_subtests
|
|
467
|
-
result.stdout.fnmatch_lines(["*::test_failing_subtests
|
|
465
|
+
result.stdout.fnmatch_lines(["*::test_failing_subtests SUBFAILED?failed subtest?*"])
|
|
466
|
+
result.stdout.fnmatch_lines(["*::test_failing_subtests SUBPASSED?success subtest?*"])
|
|
467
|
+
result.stdout.fnmatch_lines(["*::test_failing_subtests FAILED*"])
|
|
468
468
|
|
|
469
469
|
# make sure that that we get a '1' exit code for the testsuite
|
|
470
470
|
assert result.ret == 1
|
|
@@ -473,7 +473,7 @@ def test_subtests(testdir, requests_mock): # pylint: disable=redefined-outer-na
|
|
|
473
473
|
report = json.loads(requests_mock.request_history[-1].text)
|
|
474
474
|
assert report["name"] == "test_subtests.py::test_failing_subtests"
|
|
475
475
|
assert "subtest" not in report["user_fields"]
|
|
476
|
-
assert report["status"] == "
|
|
476
|
+
assert report["status"] == "failure"
|
|
477
477
|
|
|
478
478
|
report = json.loads(requests_mock.request_history[-2].text)
|
|
479
479
|
assert report["name"] == "test_subtests.py::test_failing_subtests"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|