qase-python-commons 3.0.2b9__tar.gz → 3.0.4__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.
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/PKG-INFO +3 -3
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/pyproject.toml +3 -3
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/config.py +1 -1
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/reporters/core.py +6 -3
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase_python_commons.egg-info/PKG-INFO +3 -3
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase_python_commons.egg-info/requires.txt +2 -2
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/README.md +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/setup.cfg +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/__init__.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/client/api_v1_client.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/client/api_v2_client.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/client/base_api_client.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/exceptions/reporter.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/loader.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/logger.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/__init__.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/attachment.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/basemodel.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/relation.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/result.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/run.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/runtime.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/step.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/suite.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/profilers/__init__.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/profilers/db.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/profilers/network.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/profilers/sleep.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/reporters/__init__.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/reporters/report.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/reporters/testops.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/utils.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/validators/base.py +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase_python_commons.egg-info/SOURCES.txt +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase_python_commons.egg-info/dependency_links.txt +0 -0
- {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase_python_commons.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qase-python-commons
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.4
|
|
4
4
|
Summary: A library for Qase TestOps and Qase Report
|
|
5
5
|
Author-email: Qase Team <support@qase.io>
|
|
6
6
|
Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/master/qase-python-commons
|
|
@@ -22,8 +22,8 @@ Requires-Python: >=3.7
|
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
Requires-Dist: certifi>=2024.2.2
|
|
24
24
|
Requires-Dist: attrs>=23.2.0
|
|
25
|
-
Requires-Dist: qase-api-client~=1.0.
|
|
26
|
-
Requires-Dist: qase-api-v2-client~=1.0.
|
|
25
|
+
Requires-Dist: qase-api-client~=1.0.0
|
|
26
|
+
Requires-Dist: qase-api-v2-client~=1.0.0
|
|
27
27
|
Requires-Dist: more_itertools
|
|
28
28
|
Provides-Extra: testing
|
|
29
29
|
Requires-Dist: pytest; extra == "testing"
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qase-python-commons"
|
|
7
|
-
version = "3.0.
|
|
7
|
+
version = "3.0.4"
|
|
8
8
|
description = "A library for Qase TestOps and Qase Report"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{name = "Qase Team", email = "support@qase.io"}]
|
|
@@ -30,8 +30,8 @@ requires-python = ">=3.7"
|
|
|
30
30
|
dependencies = [
|
|
31
31
|
"certifi>=2024.2.2",
|
|
32
32
|
"attrs>=23.2.0",
|
|
33
|
-
"qase-api-client~=1.0.
|
|
34
|
-
"qase-api-v2-client~=1.0.
|
|
33
|
+
"qase-api-client~=1.0.0",
|
|
34
|
+
"qase-api-v2-client~=1.0.0",
|
|
35
35
|
"more_itertools"
|
|
36
36
|
]
|
|
37
37
|
|
|
@@ -30,7 +30,7 @@ class ConfigManager:
|
|
|
30
30
|
def get(self, key, default=None, value_type=None):
|
|
31
31
|
# Use _get_config method to get the value. If None, return default.
|
|
32
32
|
value = self._get_config(key)
|
|
33
|
-
if value and value_type and value_type == bool:
|
|
33
|
+
if value is not None and value_type is not None and value_type == bool:
|
|
34
34
|
return self.parseBool(value)
|
|
35
35
|
return value or default
|
|
36
36
|
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/reporters/core.py
RENAMED
|
@@ -9,7 +9,7 @@ from .report import QaseReport
|
|
|
9
9
|
from .testops import QaseTestOps
|
|
10
10
|
|
|
11
11
|
from ..models import Result, Attachment, Runtime
|
|
12
|
-
from typing import Union
|
|
12
|
+
from typing import Union, List
|
|
13
13
|
|
|
14
14
|
"""
|
|
15
15
|
CoreReporter is a facade for all reporters and it is used to initialize and manage them.
|
|
@@ -21,7 +21,7 @@ class QaseCoreReporter:
|
|
|
21
21
|
def __init__(self, config: Config):
|
|
22
22
|
self.config = config
|
|
23
23
|
self.logger = Logger(self.config.get('debug', False, bool))
|
|
24
|
-
self.
|
|
24
|
+
self._execution_plan = None
|
|
25
25
|
self.profilers = []
|
|
26
26
|
self.overhead = 0
|
|
27
27
|
|
|
@@ -149,6 +149,9 @@ class QaseCoreReporter:
|
|
|
149
149
|
self.logger.log(e, 'error')
|
|
150
150
|
self._run_fallback()
|
|
151
151
|
|
|
152
|
+
def get_execution_plan(self) -> Union[List[int], None]:
|
|
153
|
+
return self._execution_plan
|
|
154
|
+
|
|
152
155
|
def _run_fallback(self) -> None:
|
|
153
156
|
if self.fallback:
|
|
154
157
|
try:
|
|
@@ -174,7 +177,7 @@ class QaseCoreReporter:
|
|
|
174
177
|
api_token=self.config.get("testops.api.token"),
|
|
175
178
|
host=self.config.get("testops.api.host", "qase.io"),
|
|
176
179
|
)
|
|
177
|
-
self.
|
|
180
|
+
self._execution_plan = loader.load(self.config.get("testops.project"),
|
|
178
181
|
int(self.config.get("testops.plan.id")))
|
|
179
182
|
except Exception as e:
|
|
180
183
|
self.logger.log('Failed to load test plan from Qase TestOps', 'info')
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase_python_commons.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qase-python-commons
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.4
|
|
4
4
|
Summary: A library for Qase TestOps and Qase Report
|
|
5
5
|
Author-email: Qase Team <support@qase.io>
|
|
6
6
|
Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/master/qase-python-commons
|
|
@@ -22,8 +22,8 @@ Requires-Python: >=3.7
|
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
Requires-Dist: certifi>=2024.2.2
|
|
24
24
|
Requires-Dist: attrs>=23.2.0
|
|
25
|
-
Requires-Dist: qase-api-client~=1.0.
|
|
26
|
-
Requires-Dist: qase-api-v2-client~=1.0.
|
|
25
|
+
Requires-Dist: qase-api-client~=1.0.0
|
|
26
|
+
Requires-Dist: qase-api-v2-client~=1.0.0
|
|
27
27
|
Requires-Dist: more_itertools
|
|
28
28
|
Provides-Extra: testing
|
|
29
29
|
Requires-Dist: pytest; extra == "testing"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/client/api_v1_client.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/client/api_v2_client.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/client/base_api_client.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/exceptions/reporter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/__init__.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/attachment.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/basemodel.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/relation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/runtime.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/profilers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/profilers/network.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/profilers/sleep.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/reporters/__init__.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/reporters/report.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/reporters/testops.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/validators/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|