qase-python-commons 3.1.4__tar.gz → 3.1.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.
Potentially problematic release.
This version of qase-python-commons might be problematic. Click here for more details.
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/PKG-INFO +2 -2
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/pyproject.toml +2 -2
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/client/api_v1_client.py +20 -1
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase_python_commons.egg-info/PKG-INFO +2 -2
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase_python_commons.egg-info/requires.txt +1 -1
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/README.md +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/setup.cfg +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/__init__.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/client/api_v2_client.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/client/base_api_client.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/config.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/exceptions/reporter.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/loader.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/logger.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/__init__.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/attachment.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/basemodel.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/api.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/batch.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/connection.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/framework.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/plan.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/qaseconfig.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/report.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/run.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/testops.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/relation.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/result.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/run.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/runtime.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/step.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/suite.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/profilers/__init__.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/profilers/db.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/profilers/network.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/profilers/sleep.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/reporters/__init__.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/reporters/core.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/reporters/report.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/reporters/testops.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/utils.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/validators/base.py +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase_python_commons.egg-info/SOURCES.txt +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase_python_commons.egg-info/dependency_links.txt +0 -0
- {qase_python_commons-3.1.4 → qase_python_commons-3.1.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.1.
|
|
3
|
+
Version: 3.1.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
|
|
@@ -22,7 +22,7 @@ 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.1.
|
|
25
|
+
Requires-Dist: qase-api-client~=1.1.1
|
|
26
26
|
Requires-Dist: qase-api-v2-client~=1.0.0
|
|
27
27
|
Requires-Dist: more_itertools
|
|
28
28
|
Provides-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.1.
|
|
7
|
+
version = "3.1.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"}]
|
|
@@ -30,7 +30,7 @@ requires-python = ">=3.7"
|
|
|
30
30
|
dependencies = [
|
|
31
31
|
"certifi>=2024.2.2",
|
|
32
32
|
"attrs>=23.2.0",
|
|
33
|
-
"qase-api-client~=1.1.
|
|
33
|
+
"qase-api-client~=1.1.1",
|
|
34
34
|
"qase-api-v2-client~=1.0.0",
|
|
35
35
|
"more_itertools"
|
|
36
36
|
]
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/client/api_v1_client.py
RENAMED
|
@@ -2,7 +2,7 @@ from typing import Dict, Union
|
|
|
2
2
|
|
|
3
3
|
import certifi
|
|
4
4
|
from qase.api_client_v1 import ApiClient, ProjectsApi, Project, EnvironmentsApi, RunsApi, AttachmentsApi, \
|
|
5
|
-
AttachmentGet, RunCreate, ResultsApi, ResultcreateBulk
|
|
5
|
+
AttachmentGet, RunCreate, ResultsApi, ResultcreateBulk, AuthorsApi
|
|
6
6
|
from qase.api_client_v1.configuration import Configuration
|
|
7
7
|
from .. import Logger
|
|
8
8
|
from .base_api_client import BaseApiClient
|
|
@@ -16,6 +16,7 @@ class ApiV1Client(BaseApiClient):
|
|
|
16
16
|
def __init__(self, config: QaseConfig, logger: Logger):
|
|
17
17
|
self.logger = logger
|
|
18
18
|
self.config = config
|
|
19
|
+
self.__authors = {}
|
|
19
20
|
|
|
20
21
|
try:
|
|
21
22
|
self.logger.log_debug("Preparing API client")
|
|
@@ -198,6 +199,11 @@ class ApiV1Client(BaseApiClient):
|
|
|
198
199
|
if test_ops_id:
|
|
199
200
|
result_model["case_id"] = test_ops_id
|
|
200
201
|
|
|
202
|
+
if result.get_field('author'):
|
|
203
|
+
author_id = self._get_author_id(result.get_field('author'))
|
|
204
|
+
if author_id:
|
|
205
|
+
result_model["author_id"] = author_id
|
|
206
|
+
|
|
201
207
|
self.logger.log_debug(f"Prepared result: {result_model}")
|
|
202
208
|
|
|
203
209
|
return result_model
|
|
@@ -257,3 +263,16 @@ class ApiV1Client(BaseApiClient):
|
|
|
257
263
|
except Exception as e:
|
|
258
264
|
self.logger.log(f"Error at preparing step: {e}", "error")
|
|
259
265
|
raise ReporterException(e)
|
|
266
|
+
|
|
267
|
+
def _get_author_id(self, author: str) -> Union[str, None]:
|
|
268
|
+
if author in self.__authors:
|
|
269
|
+
return self.__authors[author]
|
|
270
|
+
|
|
271
|
+
author_api = AuthorsApi(self.client)
|
|
272
|
+
authors = author_api.get_authors(search=author)
|
|
273
|
+
if authors.result.total == 0:
|
|
274
|
+
return None
|
|
275
|
+
|
|
276
|
+
self.__authors[author] = authors.result.entities[0].author_id
|
|
277
|
+
|
|
278
|
+
return authors.result.entities[0].author_id
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.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.1.
|
|
3
|
+
Version: 3.1.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
|
|
@@ -22,7 +22,7 @@ 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.1.
|
|
25
|
+
Requires-Dist: qase-api-client~=1.1.1
|
|
26
26
|
Requires-Dist: qase-api-v2-client~=1.0.0
|
|
27
27
|
Requires-Dist: more_itertools
|
|
28
28
|
Provides-Extra: testing
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/client/api_v2_client.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/client/base_api_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/exceptions/reporter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/attachment.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/basemodel.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/api.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/batch.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/connection.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/framework.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/plan.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/qaseconfig.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/report.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/run.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/models/config/testops.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.1.4 → qase_python_commons-3.1.5}/src/qase/commons/profilers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/profilers/network.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/reporters/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/reporters/report.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase/commons/reporters/testops.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.4 → qase_python_commons-3.1.5}/src/qase_python_commons.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|