File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ def _compute_given_when_then(steps: list[Step]) -> list[Step]:
151
151
152
152
class GherkinParser :
153
153
def __init__ (self , abs_filename : str = None , encoding : str = "utf-8" ):
154
- self .abs_filename = Path (abs_filename ) if abs_filename else None
154
+ self .abs_filename = Path (abs_filename )
155
155
self .encoding = encoding
156
156
157
157
with open (self .abs_filename , encoding = self .encoding ) as f :
Original file line number Diff line number Diff line change @@ -346,7 +346,8 @@ def get_step_type(keyword: str) -> str | None:
346
346
"then" : THEN ,
347
347
}.get (keyword )
348
348
349
- def parse_steps (self , steps_data : list [GherkinStep ]) -> list [Step ]:
349
+ @staticmethod
350
+ def parse_steps (steps_data : list [GherkinStep ]) -> list [Step ]:
350
351
"""Parse a list of step data into Step objects.
351
352
352
353
Args:
You can’t perform that action at this time.
0 commit comments