Skip to content

Commit

Permalink
refactor : runtime model
Browse files Browse the repository at this point in the history
Add `clear` method to set the runtime to the base state
  • Loading branch information
gibiw committed Sep 12, 2024
1 parent 8becc6c commit 8591738
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions qase-python-commons/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# [email protected]

## What's new

Add `clear` method to set the runtime to the base state.

# [email protected]

## What's new
Expand Down
2 changes: 1 addition & 1 deletion qase-python-commons/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "qase-python-commons"
version = "3.1.3"
version = "3.1.4"
description = "A library for Qase TestOps and Qase Report"
readme = "README.md"
authors = [{name = "Qase Team", email = "[email protected]"}]
Expand Down
7 changes: 6 additions & 1 deletion qase-python-commons/src/qase/commons/models/runtime.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .step import Step, StepTextData
from .step import Step
from .attachment import Attachment


Expand Down Expand Up @@ -41,3 +41,8 @@ def add_attachment(self, attachment: Attachment):
self.result.add_attachment(attachment)
except Exception as e:
raise QaseRuntimeException(e)

def clear(self):
self.result = None
self.steps = {}
self.step_id = None

0 comments on commit 8591738

Please sign in to comment.