Skip to content

Commit cb17a45

Browse files
committed
Prepare release
1 parent 809a281 commit cb17a45

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.3.2] - 2023/06/21
8+
9+
### Fixed
10+
11+
- Test cases without steps now work properly
12+
- get_test_result now gets the last test execution
13+
714
## [2.3.1] - 2022/12/02
815

916
### Fixed

adaptavist/adaptavist.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -771,10 +771,13 @@ def get_test_result(self, test_run_key: str, test_case_key: str) -> Dict[str, An
771771
:returns: Test result
772772
"""
773773
response = self.get_test_results(test_run_key)
774-
return max(
775-
(item for item in response if item["testCaseKey"] == test_case_key),
776-
key=lambda item: item["id"],
777-
) or {}
774+
return (
775+
max(
776+
(item for item in response if item["testCaseKey"] == test_case_key),
777+
key=lambda item: item["id"],
778+
)
779+
or {}
780+
)
778781

779782
def create_test_result(
780783
self, test_run_key: str, test_case_key: str, status: str = STATUS_NOT_EXECUTED, **kwargs: Any

tests/fixtures/get_test_results.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,4 @@
167167
"testCaseKey": "JQA-T123",
168168
"userKey": "automation_bot"
169169
}
170-
]
170+
]

0 commit comments

Comments
 (0)