generated from kieran-ryan/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e2abe4
commit 2a64444
Showing
5 changed files
with
38 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,8 @@ | ||
"""Behave environment setup.""" | ||
|
||
from behave.matchers import matcher_mapping, use_step_matcher | ||
from cucumber_expressions.parameter_type_registry import ParameterTypeRegistry | ||
from behave.matchers import use_step_matcher | ||
|
||
from behave_cucumber_matcher import build_step_matcher | ||
|
||
# Initialise a Cucumber Expressions parameter registry | ||
parameter_registry = ParameterTypeRegistry() | ||
|
||
# Create the step matcher to pass to behave | ||
step_matcher = build_step_matcher(parameter_registry) | ||
|
||
# Patch the step matcher into behave | ||
matcher_mapping["cucumber_expressions"] = step_matcher | ||
from behave_cucumber_matcher import CUCUMBER_EXPRESSIONS_MATCHER | ||
|
||
# Specify to use the Cucumber Expressions step matcher | ||
use_step_matcher("cucumber_expressions") | ||
use_step_matcher(CUCUMBER_EXPRESSIONS_MATCHER) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters