Skip to content

Commit

Permalink
Update listener.py to fix issue #771
Browse files Browse the repository at this point in the history
Fix for issue #771: with behave v1.2.7.dev5 an error causes the allure_behave report formatter to crash
  • Loading branch information
ercaronte authored Mar 5, 2024
1 parent 058a6af commit fd02db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allure-behave/src/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def stop_test(self, parent_uuid, uuid, name, context, exc_type, exc_val, exc_tb)
self.stop_scenario(context['scenario'])

def stop_scenario(self, scenario):
should_run = (scenario.should_run_with_tags(self.behave_config.tags) and
should_run = (scenario.should_run_with_tags(self.behave_config.tag_expression) and
scenario.should_run_with_name_select(self.behave_config))
should_drop_skipped_by_option = scenario.status == 'skipped' and not self.behave_config.show_skipped
should_drop_excluded = self.hide_excluded and (scenario.skip_reason == TEST_PLAN_SKIP_REASON or not should_run)
Expand Down

0 comments on commit fd02db7

Please sign in to comment.