Skip to content

Commit 291a0b5

Browse files
committed
Fix SnapshotFileLayout.rootFolder()
1 parent 1c7334d commit 291a0b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/pytest-selfie/pytest_selfie/plugin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ def __init__(self, fs: FSImplementation, settings: SelfieSettingsAPI):
6969
self.__root_folder = TypedPath.of_folder(os.path.abspath(settings.root_dir))
7070
self.unix_newlines = self.__infer_default_line_ending_is_unix()
7171

72+
def root_folder(self) -> TypedPath:
73+
return self.__root_folder
74+
7275
def snapshotfile_for_testfile(self, testfile: TypedPath) -> TypedPath:
7376
if testfile.name.endswith(".py"):
7477
return testfile.parent_folder().resolve_file(f"{testfile.name[:-3]}.ss")

0 commit comments

Comments
 (0)