From 82ec29719bdb6a4906fc93b632cdb5c329dd2771 Mon Sep 17 00:00:00 2001 From: Dmitrii Gridnev Date: Fri, 4 Jul 2025 14:35:59 +0300 Subject: [PATCH] fix: issue where the test run wasn't being completed before the results were uploaded - Updated version to 3.5.2 in pyproject.toml. - Fixed an issue where the test run wasn't being completed before the results were uploaded. - Enhanced changelog to reflect the changes made. --- qase-python-commons/changelog.md | 6 ++++++ qase-python-commons/pyproject.toml | 2 +- qase-python-commons/src/qase/commons/reporters/testops.py | 6 ++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/qase-python-commons/changelog.md b/qase-python-commons/changelog.md index 5715a751..b41173d4 100644 --- a/qase-python-commons/changelog.md +++ b/qase-python-commons/changelog.md @@ -1,3 +1,9 @@ +# qase-python-commons@3.5.2 + +## What's new + +- Fixed an issue where the test run wasn't being completed before the results were uploaded. + # qase-python-commons@3.5.1 ## What's new diff --git a/qase-python-commons/pyproject.toml b/qase-python-commons/pyproject.toml index 316fff82..fb409ded 100644 --- a/qase-python-commons/pyproject.toml +++ b/qase-python-commons/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "qase-python-commons" -version = "3.5.1" +version = "3.5.2" description = "A library for Qase TestOps and Qase Report" readme = "README.md" authors = [{name = "Qase Team", email = "support@qase.io"}] diff --git a/qase-python-commons/src/qase/commons/reporters/testops.py b/qase-python-commons/src/qase/commons/reporters/testops.py index 6cf3c013..c5e1de85 100644 --- a/qase-python-commons/src/qase/commons/reporters/testops.py +++ b/qase-python-commons/src/qase/commons/reporters/testops.py @@ -117,9 +117,11 @@ def start_run(self) -> str: def complete_run(self) -> None: if len(self.results) > 0: self._send_results() + + while self.count_running_threads > 0: + pass + if self.complete_after_run: - while self.count_running_threads > 0: - pass self.logger.log_debug("Completing run") self.client.complete_run(self.project_code, self.run_id) self.logger.log_debug("Run completed")