File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33from collections import OrderedDict
44from pathlib import Path
55
6- from pytest_bdd .parser import Examples , Feature , ScenarioTemplate , Step
76from src .pytest_bdd .gherkin_parser import (
87 Background ,
98 Cell ,
1211 DataTable ,
1312 DocString ,
1413 ExamplesTable ,
14+ Feature ,
1515 GherkinDocument ,
1616 Location ,
1717 Row ,
1818 Rule ,
1919 Scenario ,
20+ Step ,
2021 Tag ,
2122 get_gherkin_document ,
2223)
24+ from src .pytest_bdd .parser import Examples , ScenarioTemplate
25+ from src .pytest_bdd .parser import Feature as PytestBddFeature
26+ from src .pytest_bdd .parser import Step as PytestBddStep
2327
2428
2529def test_parser ():
@@ -1096,7 +1100,7 @@ def test_parser():
10961100
10971101def test_render_scenario_with_example_tags ():
10981102 # Mock feature and context
1099- feature = Feature (
1103+ feature = PytestBddFeature (
11001104 scenarios = OrderedDict (),
11011105 filename = "test.feature" ,
11021106 rel_filename = "test.feature" ,
@@ -1123,21 +1127,21 @@ def test_render_scenario_with_example_tags():
11231127
11241128 # Mock steps
11251129 steps = [
1126- Step (
1130+ PytestBddStep (
11271131 name = "Given the user enters <username> as username" ,
11281132 type = "given" ,
11291133 indent = 0 ,
11301134 line_number = 2 ,
11311135 keyword = "Given" ,
11321136 ),
1133- Step (
1137+ PytestBddStep (
11341138 name = "And the user enters <password> as password" ,
11351139 type = "and" ,
11361140 indent = 0 ,
11371141 line_number = 3 ,
11381142 keyword = "And" ,
11391143 ),
1140- Step (
1144+ PytestBddStep (
11411145 name = "Then the user should see an error message <error_message>" ,
11421146 type = "then" ,
11431147 indent = 0 ,
You can’t perform that action at this time.
0 commit comments