Skip to content

Commit

Permalink
Fix a method used in Behave-BDD Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Jun 17, 2022
1 parent 6275352 commit 2cba0c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seleniumbase/fixtures/base_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -12602,8 +12602,8 @@ def __get_filename(self):
test_id = os.environ["PYTEST_CURRENT_TEST"].split(" ")[0]
filename = test_id.split("::")[0].split("/")[-1]
elif hasattr(self, "is_behave") and self.is_behave:
file_name = sb_config.behave_scenario.filename
file_name = file_name.split("/")[-1].split("\\")[-1]
filename = sb_config.behave_scenario.filename
filename = filename.split("/")[-1].split("\\")[-1]
else:
filename = self.__class__.__module__.split(".")[-1] + ".py"
return filename
Expand Down

0 comments on commit 2cba0c8

Please sign in to comment.