qase-python-commons 3.4.1__tar.gz → 3.4.3__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.
Potentially problematic release.
This version of qase-python-commons might be problematic. Click here for more details.
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/PKG-INFO +1 -1
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/pyproject.toml +1 -1
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/client/api_v1_client.py +1 -1
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/client/base_api_client.py +1 -1
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/config.py +4 -4
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/runtime.py +9 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/reporters/core.py +5 -3
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/reporters/testops.py +2 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase_python_commons.egg-info/PKG-INFO +1 -1
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/README.md +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/setup.cfg +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/__init__.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/client/api_v2_client.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/exceptions/reporter.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/loader.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/logger.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/__init__.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/attachment.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/basemodel.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/api.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/batch.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/connection.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/framework.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/plan.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/qaseconfig.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/report.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/run.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/testops.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/relation.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/result.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/run.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/step.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/profilers/__init__.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/profilers/db.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/profilers/network.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/profilers/sleep.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/reporters/__init__.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/reporters/report.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/util/__init__.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/util/host_data.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/utils.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/validators/base.py +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase_python_commons.egg-info/SOURCES.txt +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase_python_commons.egg-info/dependency_links.txt +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase_python_commons.egg-info/requires.txt +0 -0
- {qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase_python_commons.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qase-python-commons
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.3
|
|
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/main/qase-python-commons
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qase-python-commons"
|
|
7
|
-
version = "3.4.
|
|
7
|
+
version = "3.4.3"
|
|
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"}]
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/client/api_v1_client.py
RENAMED
|
@@ -66,7 +66,7 @@ class ApiV1Client(BaseApiClient):
|
|
|
66
66
|
self.logger.log("Exception when calling EnvironmentsApi->get_environments: %s\n" % e, "error")
|
|
67
67
|
raise ReporterException(e)
|
|
68
68
|
|
|
69
|
-
def complete_run(self, project_code: str, run_id:
|
|
69
|
+
def complete_run(self, project_code: str, run_id: int) -> None:
|
|
70
70
|
api_runs = RunsApi(self.client)
|
|
71
71
|
self.logger.log_debug(f"Completing run {run_id}")
|
|
72
72
|
res = api_runs.get_run(project_code, run_id).result
|
|
@@ -53,7 +53,7 @@ class ConfigManager:
|
|
|
53
53
|
if config.get("profilers"):
|
|
54
54
|
self.config.set_profilers(config.get("profilers"))
|
|
55
55
|
|
|
56
|
-
if config.get("debug"):
|
|
56
|
+
if config.get("debug") is not None:
|
|
57
57
|
self.config.set_debug(
|
|
58
58
|
config.get("debug")
|
|
59
59
|
)
|
|
@@ -78,7 +78,7 @@ class ConfigManager:
|
|
|
78
78
|
if testops.get("project"):
|
|
79
79
|
self.config.testops.set_project(testops.get("project"))
|
|
80
80
|
|
|
81
|
-
if testops.get("defect"):
|
|
81
|
+
if testops.get("defect") is not None:
|
|
82
82
|
self.config.testops.set_defect(
|
|
83
83
|
testops.get("defect")
|
|
84
84
|
)
|
|
@@ -101,7 +101,7 @@ class ConfigManager:
|
|
|
101
101
|
if run.get("description"):
|
|
102
102
|
self.config.testops.run.set_description(run.get("description"))
|
|
103
103
|
|
|
104
|
-
if run.get("complete"):
|
|
104
|
+
if run.get("complete") is not None:
|
|
105
105
|
self.config.testops.run.set_complete(
|
|
106
106
|
run.get("complete")
|
|
107
107
|
)
|
|
@@ -135,7 +135,7 @@ class ConfigManager:
|
|
|
135
135
|
if framework.get("pytest"):
|
|
136
136
|
pytest = framework.get("pytest")
|
|
137
137
|
|
|
138
|
-
if pytest.get("captureLogs"):
|
|
138
|
+
if pytest.get("captureLogs") is not None:
|
|
139
139
|
self.config.framework.pytest.set_capture_logs(
|
|
140
140
|
pytest.get("captureLogs")
|
|
141
141
|
)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from . import Result
|
|
1
2
|
from .step import Step
|
|
2
3
|
from .attachment import Attachment
|
|
3
4
|
|
|
@@ -42,6 +43,14 @@ class Runtime:
|
|
|
42
43
|
except Exception as e:
|
|
43
44
|
raise QaseRuntimeException(e)
|
|
44
45
|
|
|
46
|
+
|
|
47
|
+
def add_param(self, key: str, value: str):
|
|
48
|
+
"""
|
|
49
|
+
Add a parameter to the current result.
|
|
50
|
+
"""
|
|
51
|
+
if self.result is not None:
|
|
52
|
+
self.result.params[key] = value
|
|
53
|
+
|
|
45
54
|
def clear(self):
|
|
46
55
|
self.result = None
|
|
47
56
|
self.steps = {}
|
|
@@ -19,7 +19,8 @@ from ..util import get_host_info
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class QaseCoreReporter:
|
|
22
|
-
def __init__(self, config: ConfigManager, framework: Union[str, None] = None,
|
|
22
|
+
def __init__(self, config: ConfigManager, framework: Union[str, None] = None,
|
|
23
|
+
reporter_name: Union[str, None] = None):
|
|
23
24
|
config.validate_config()
|
|
24
25
|
self.config = config.config
|
|
25
26
|
self.logger = Logger(self.config.debug)
|
|
@@ -64,14 +65,15 @@ class QaseCoreReporter:
|
|
|
64
65
|
self.logger.log('Failed to start run, disabling reporting', 'info')
|
|
65
66
|
self.logger.log(e, 'error')
|
|
66
67
|
self.reporter = None
|
|
68
|
+
return None
|
|
69
|
+
|
|
70
|
+
return None
|
|
67
71
|
|
|
68
72
|
def complete_run(self) -> None:
|
|
69
73
|
if self.reporter:
|
|
70
74
|
try:
|
|
71
75
|
ts = time.time()
|
|
72
|
-
self.logger.log_debug("Completing run")
|
|
73
76
|
self.reporter.complete_run()
|
|
74
|
-
self.logger.log_debug("Run completed")
|
|
75
77
|
self.overhead += time.time() - ts
|
|
76
78
|
self.logger.log(f"Overhead for Qase Report: {round(self.overhead * 1000)}ms", 'info')
|
|
77
79
|
except Exception as e:
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/reporters/testops.py
RENAMED
|
@@ -120,7 +120,9 @@ class QaseTestOps:
|
|
|
120
120
|
if self.complete_after_run:
|
|
121
121
|
while self.count_running_threads > 0:
|
|
122
122
|
pass
|
|
123
|
+
self.logger.log_debug("Completing run")
|
|
123
124
|
self.client.complete_run(self.project_code, self.run_id)
|
|
125
|
+
self.logger.log_debug("Run completed")
|
|
124
126
|
|
|
125
127
|
def complete_worker(self) -> None:
|
|
126
128
|
if len(self.results) > 0:
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase_python_commons.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qase-python-commons
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.3
|
|
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/main/qase-python-commons
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/client/api_v2_client.py
RENAMED
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/exceptions/reporter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/attachment.py
RENAMED
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/basemodel.py
RENAMED
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/api.py
RENAMED
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/batch.py
RENAMED
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/connection.py
RENAMED
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/framework.py
RENAMED
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/plan.py
RENAMED
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/qaseconfig.py
RENAMED
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/report.py
RENAMED
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/run.py
RENAMED
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/models/config/testops.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/profilers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/profilers/network.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/reporters/__init__.py
RENAMED
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase/commons/reporters/report.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.4.1 → qase_python_commons-3.4.3}/src/qase_python_commons.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|