From 7332828e62c34c8c6ceb4efd4b13f8c505788176 Mon Sep 17 00:00:00 2001 From: Dmitrii Gridnev Date: Tue, 14 Oct 2025 15:08:26 +0300 Subject: [PATCH] feat: release version 2.0.4 with time mocking compatibility improvements - Updated version to 2.0.4 in pyproject.toml. - Fixed compatibility with time mocking libraries by using real system time for step timestamps, preventing "Data is invalid" errors from Qase API. Resolves #415. - Updated dependency on qase-python-commons to version 4.1.2. - Updated changelog to reflect the new version and changes. This release enhances compatibility with time mocking libraries, ensuring accurate timestamp reporting. --- qase-behave/changelog.md | 7 +++++++ qase-behave/pyproject.toml | 4 ++-- qase-behave/src/qase/behave/utils.py | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/qase-behave/changelog.md b/qase-behave/changelog.md index af13be99..3fdbc2a7 100644 --- a/qase-behave/changelog.md +++ b/qase-behave/changelog.md @@ -1,3 +1,10 @@ +# qase-behave 2.0.4 + +## What's new + +- Fixed compatibility with time mocking libraries like `freezegun`. Step timestamps now use real system time instead of mocked time. This prevents "Data is invalid" errors from Qase API. Resolves [#415](https://github.com/qase-tms/qase-python/issues/415). +- Updated dependency on qase-python-commons to version 4.1.2 + # qase-behave 2.0.3 ## What's new diff --git a/qase-behave/pyproject.toml b/qase-behave/pyproject.toml index fcd72919..00c709bc 100644 --- a/qase-behave/pyproject.toml +++ b/qase-behave/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "qase-behave" -version = "2.0.3" +version = "2.0.4" description = "Qase Behave Plugin for Qase TestOps and Qase Report" readme = "README.md" keywords = ["qase", "behave", "plugin", "testops", "report", "qase reporting", "test observability"] @@ -28,7 +28,7 @@ classifiers = [ ] requires-python = ">=3.9" dependencies = [ - "qase-python-commons~=4.1.1", + "qase-python-commons~=4.1.2", "behave>=1.2.6", "more_itertools", ] diff --git a/qase-behave/src/qase/behave/utils.py b/qase-behave/src/qase/behave/utils.py index 519b2325..07e8c2fb 100644 --- a/qase-behave/src/qase/behave/utils.py +++ b/qase-behave/src/qase/behave/utils.py @@ -110,7 +110,7 @@ def parse_step(step: Step) -> QaseStep: data=StepGherkinData(keyword=step.keyword, name=step.name, line=step.line) ) - current_time = time.time() + current_time = QaseUtils.get_real_time() # Map behave status to qase status status_mapping = {