qase-python-commons 3.0.3__tar.gz → 3.0.5__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.3 → qase_python_commons-3.0.5}/PKG-INFO +1 -1
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/pyproject.toml +1 -1
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/reporters/core.py +6 -3
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/reporters/report.py +2 -2
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase_python_commons.egg-info/PKG-INFO +1 -1
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/README.md +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/setup.cfg +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/__init__.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/client/api_v1_client.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/client/api_v2_client.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/client/base_api_client.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/config.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/exceptions/reporter.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/loader.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/logger.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/models/__init__.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/models/attachment.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/models/basemodel.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/models/relation.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/models/result.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/models/run.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/models/runtime.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/models/step.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/models/suite.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/profilers/__init__.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/profilers/db.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/profilers/network.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/profilers/sleep.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/reporters/__init__.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/reporters/testops.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/utils.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/validators/base.py +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase_python_commons.egg-info/SOURCES.txt +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase_python_commons.egg-info/dependency_links.txt +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase_python_commons.egg-info/requires.txt +0 -0
- {qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/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.5
|
|
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
|
|
@@ -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.5"
|
|
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"}]
|
|
@@ -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.3 → qase_python_commons-3.0.5}/src/qase/commons/reporters/report.py
RENAMED
|
@@ -117,8 +117,8 @@ class QaseReport:
|
|
|
117
117
|
self._store_object(run, self.report_path, "report")
|
|
118
118
|
|
|
119
119
|
# Saves a model to a file
|
|
120
|
-
def _store_object(self,
|
|
121
|
-
data =
|
|
120
|
+
def _store_object(self, obj, path, filename):
|
|
121
|
+
data = obj.__str__()
|
|
122
122
|
if self.format == 'jsonp':
|
|
123
123
|
data = f"qaseJsonp({data});"
|
|
124
124
|
with open(f"{path}/{filename}.{self.format}", 'w', encoding='utf-8') as f:
|
{qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/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.5
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/client/api_v1_client.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/client/api_v2_client.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/client/base_api_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/exceptions/reporter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/models/attachment.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/models/basemodel.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/profilers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/profilers/network.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/reporters/__init__.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase/commons/reporters/testops.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.3 → qase_python_commons-3.0.5}/src/qase_python_commons.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|