Skip to content

Commit

Permalink
release: qase-python-commons 3.1.2
Browse files Browse the repository at this point in the history
Support `suite` field in the test case model.

[#248]
  • Loading branch information
gibiw committed Sep 3, 2024
1 parent f2ed050 commit 34708c8
Show file tree
Hide file tree
Showing 3 changed files with 11 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

Support `suite` field in the test case model.

# [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.1"
version = "3.1.2"
description = "A library for Qase TestOps and Qase Report"
readme = "README.md"
authors = [{name = "Qase Team", email = "[email protected]"}]
Expand Down
5 changes: 4 additions & 1 deletion qase-python-commons/src/qase/commons/client/api_v1_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,15 @@ def _prepare_result(self, project_code: str, result: Result) -> Dict:
if result.get_suite_title():
suite = "\t".join(result.get_suite_title().split("."))

if result.get_field('suite'):
suite = result.get_field('suite')

root_suite = self.config.root_suite
if root_suite:
suite = f"{root_suite}\t{suite}"

if suite:
case_data["suite"] = suite
case_data["suite_title"] = suite

result_model = {
"status": result.execution.status,
Expand Down

0 comments on commit 34708c8

Please sign in to comment.