Skip to content

Commit

Permalink
The allure-behave tests do not use behave.matchers.step_matcher and b…
Browse files Browse the repository at this point in the history
…ehave.matchers.current_matcher, which got removed in Behave 1.2.7.dev.4.

In this way, the allure-behave test suite works for Behave 1.2.6 as well as with the latest 1.2.7dev5
  • Loading branch information
ercaronte committed Mar 13, 2024
1 parent d07d234 commit ed48884
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/allure_behave/behave_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,14 @@ def load_step_definitions(self, extra_step_paths=None):
behave.step_registry.registry = self.step_registry = StepRegistry()
step_globals = {
"use_step_matcher": matchers.use_step_matcher,
"step_matcher": matchers.step_matcher,
}

# To support the decorators (e.g., @given) with no imports
setup_step_decorators(step_globals, self.step_registry)

default_matcher = matchers.current_matcher
for step in self.__steps:
step_module_globals = step_globals.copy()
exec(step, step_module_globals)
matchers.current_matcher = default_matcher

def load_features(self):
self.features.extend(
Expand Down

0 comments on commit ed48884

Please sign in to comment.