qase-python-commons 3.0.2b7__tar.gz → 3.0.2b8__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.2b7 → qase_python_commons-3.0.2b8}/PKG-INFO +1 -1
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/pyproject.toml +1 -1
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/config.py +1 -1
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/__init__.py +3 -2
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/reporters/testops.py +5 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase_python_commons.egg-info/PKG-INFO +1 -1
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/README.md +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/setup.cfg +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/__init__.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/client/api_v1_client.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/client/api_v2_client.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/client/base_api_client.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/exceptions/reporter.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/loader.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/logger.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/attachment.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/basemodel.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/relation.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/result.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/run.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/runtime.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/step.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/suite.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/profilers/__init__.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/profilers/db.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/profilers/network.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/profilers/sleep.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/reporters/__init__.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/reporters/core.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/reporters/report.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/utils.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/validators/base.py +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase_python_commons.egg-info/SOURCES.txt +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase_python_commons.egg-info/dependency_links.txt +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase_python_commons.egg-info/requires.txt +0 -0
- {qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/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.2b8
|
|
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.2b8"
|
|
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 @@ 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_type and value_type == bool:
|
|
33
|
+
if value and value_type and value_type == bool:
|
|
34
34
|
return self.parseBool(value)
|
|
35
35
|
return value or default
|
|
36
36
|
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/reporters/testops.py
RENAMED
|
@@ -32,6 +32,7 @@ class QaseTestOps:
|
|
|
32
32
|
self.send_semaphore = threading.Semaphore(
|
|
33
33
|
self.config.get('testops.batch.threads', 4)) # Semaphore to limit concurrent sends
|
|
34
34
|
self.lock = threading.Lock()
|
|
35
|
+
self.count_running_threads = 0
|
|
35
36
|
|
|
36
37
|
environment = self.config.get('environment', None)
|
|
37
38
|
if environment:
|
|
@@ -80,12 +81,14 @@ class QaseTestOps:
|
|
|
80
81
|
self.logger.log(f"Error at sending results for run {self.run_id}: {e}", "error")
|
|
81
82
|
raise # Re-raise the exception to be caught by the thread handler
|
|
82
83
|
finally:
|
|
84
|
+
self.count_running_threads -= 1
|
|
83
85
|
self.send_semaphore.release() # Release semaphore whether success or exception
|
|
84
86
|
|
|
85
87
|
def _send_results(self) -> None:
|
|
86
88
|
if self.results:
|
|
87
89
|
# Acquire semaphore before starting the send operation
|
|
88
90
|
self.send_semaphore.acquire()
|
|
91
|
+
self.count_running_threads += 1
|
|
89
92
|
results_to_send = self.results.copy()
|
|
90
93
|
self.results = []
|
|
91
94
|
|
|
@@ -115,6 +118,8 @@ class QaseTestOps:
|
|
|
115
118
|
if len(self.results) > 0:
|
|
116
119
|
self._send_results()
|
|
117
120
|
if self.complete_after_run:
|
|
121
|
+
while self.count_running_threads > 0:
|
|
122
|
+
pass
|
|
118
123
|
self.client.complete_run(self.project_code, self.run_id)
|
|
119
124
|
|
|
120
125
|
def complete_worker(self) -> None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qase-python-commons
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.2b8
|
|
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.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/client/api_v1_client.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/client/api_v2_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/exceptions/reporter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/attachment.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/basemodel.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/relation.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/result.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/runtime.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/models/suite.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/profilers/__init__.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/profilers/db.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/profilers/network.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/profilers/sleep.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/reporters/__init__.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/reporters/core.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/reporters/report.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b7 → qase_python_commons-3.0.2b8}/src/qase/commons/validators/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|