We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pytest-bdd
1 parent b56870b commit 581f1cfCopy full SHA for 581f1cf
2 files changed
CHANGELOG.md
@@ -1,6 +1,8 @@
1
# Changelog
2
3
## [Unreleased]
4
+### Fixed
5
+- Agent crash in certain `pytest-bdd` cases, by @HardNorth
6
7
## [5.6.3]
8
### Changed
pytest_reportportal/service.py
@@ -1094,7 +1094,7 @@ def post_log(
1094
if PYTEST_BDD:
1095
if not item_id:
1096
# Check if we are actually a BDD scenario
1097
- scenario = self._bdd_scenario_by_item[test_item]
+ scenario = self._bdd_scenario_by_item.get(test_item, None)
1098
if scenario:
1099
# Yes, we are a BDD scenario, report log to the scenario
1100
item_id = self._tree_path[scenario][-1]["item_id"]
0 commit comments