From 2a5416d06ec05b8843608a02c8926f326540830b Mon Sep 17 00:00:00 2001 From: anibalinn Date: Fri, 6 Dec 2024 12:19:40 -0300 Subject: [PATCH] Fix done when managing tags --- .github/workflows/python-package.yml | 1 - behavex/outputs/report_json.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 4078c36..3ee9ae9 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -42,5 +42,4 @@ jobs: behavex .\\tests\\features\\*.feature else behavex ./tests/features/*.feature - cat /home/runner/work/behavex/behavex/output/report.json fi diff --git a/behavex/outputs/report_json.py b/behavex/outputs/report_json.py index 8cac259..5b36a56 100644 --- a/behavex/outputs/report_json.py +++ b/behavex/outputs/report_json.py @@ -153,6 +153,7 @@ def _processing_scenarios(scenarios, scenario_list, id_feature): is_dry_run = get_param('dry_run') for scenario in scenarios: # Remove BHX_MANUAL_DRY_RUN tag if it is a dry run + scenario_tags = get_scenario_tags(scenario) if is_dry_run and 'BHX_MANUAL_DRY_RUN' in scenario_tags: scenario.tags.remove('BHX_MANUAL_DRY_RUN') # Set MANUAL to False in order filter regardless of it @@ -160,7 +161,6 @@ def _processing_scenarios(scenarios, scenario_list, id_feature): scenario ) # pylint: disable=W0123 - scenario_tags = get_scenario_tags(scenario) if match_for_execution(scenario_tags): # Scenario was selectable scenario_info = {}