Definition at line 65 of file plugin.py.
◆ __init__()
Reimplemented from selfie_lib.WriteTracker.SnapshotFileLayout.
Definition at line 66 of file plugin.py.
66 def __init__(self, fs: FSImplementation, settings: SelfieSettingsAPI):
67 super().__init__(fs)
68 self.__settings = settings
69 self.__root_folder = TypedPath.of_folder(os.path.abspath(settings.root_dir))
70 self.unix_newlines = self.__infer_default_line_ending_is_unix()
71
◆ root_folder()
TypedPath pytest_selfie.plugin.PytestSnapshotFileLayout.root_folder |
( |
|
self | ) |
|
◆ snapshotfile_for_testfile()
TypedPath pytest_selfie.plugin.PytestSnapshotFileLayout.snapshotfile_for_testfile |
( |
|
self, |
|
|
TypedPath |
testfile |
|
) |
| |
Definition at line 75 of file plugin.py.
75 def snapshotfile_for_testfile(self, testfile: TypedPath) -> TypedPath:
76 if testfile.name.endswith(".py"):
77 return testfile.parent_folder().resolve_file(f"{testfile.name[:-3]}.ss")
78 else:
79 raise ValueError(f"Unknown file extension, expected .py: {testfile.name}")
80
◆ unix_newlines
pytest_selfie.plugin.PytestSnapshotFileLayout.unix_newlines |
The documentation for this class was generated from the following file: