File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 3
3
from collections import OrderedDict
4
4
from pathlib import Path
5
5
6
- from pytest_bdd .parser import Examples , Feature , ScenarioTemplate , Step
7
6
from src .pytest_bdd .gherkin_parser import (
8
7
Background ,
9
8
Cell ,
12
11
DataTable ,
13
12
DocString ,
14
13
ExamplesTable ,
14
+ Feature ,
15
15
GherkinDocument ,
16
16
Location ,
17
17
Row ,
18
18
Rule ,
19
19
Scenario ,
20
+ Step ,
20
21
Tag ,
21
22
get_gherkin_document ,
22
23
)
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
23
27
24
28
25
29
def test_parser ():
@@ -1096,7 +1100,7 @@ def test_parser():
1096
1100
1097
1101
def test_render_scenario_with_example_tags ():
1098
1102
# Mock feature and context
1099
- feature = Feature (
1103
+ feature = PytestBddFeature (
1100
1104
scenarios = OrderedDict (),
1101
1105
filename = "test.feature" ,
1102
1106
rel_filename = "test.feature" ,
@@ -1123,21 +1127,21 @@ def test_render_scenario_with_example_tags():
1123
1127
1124
1128
# Mock steps
1125
1129
steps = [
1126
- Step (
1130
+ PytestBddStep (
1127
1131
name = "Given the user enters <username> as username" ,
1128
1132
type = "given" ,
1129
1133
indent = 0 ,
1130
1134
line_number = 2 ,
1131
1135
keyword = "Given" ,
1132
1136
),
1133
- Step (
1137
+ PytestBddStep (
1134
1138
name = "And the user enters <password> as password" ,
1135
1139
type = "and" ,
1136
1140
indent = 0 ,
1137
1141
line_number = 3 ,
1138
1142
keyword = "And" ,
1139
1143
),
1140
- Step (
1144
+ PytestBddStep (
1141
1145
name = "Then the user should see an error message <error_message>" ,
1142
1146
type = "then" ,
1143
1147
indent = 0 ,
You can’t perform that action at this time.
0 commit comments