Selfie
Loading...
Searching...
No Matches
selfie_lib.WriteTracker.SnapshotFileLayout Class Reference
Inheritance diagram for selfie_lib.WriteTracker.SnapshotFileLayout:
pytest_selfie.plugin.PytestSnapshotFileLayout

Public Member Functions

 __init__ (self, FS fs)
 
TypedPath root_folder (self)
 
TypedPath sourcefile_for_call (self, CallLocation call)
 

Public Attributes

 fs
 

Detailed Description

Definition at line 85 of file WriteTracker.py.

Constructor & Destructor Documentation

◆ __init__()

selfie_lib.WriteTracker.SnapshotFileLayout.__init__ (   self,
FS  fs 
)

Reimplemented in pytest_selfie.plugin.PytestSnapshotFileLayout.

Definition at line 86 of file WriteTracker.py.

86 def __init__(self, fs: FS):
87 self.fs = fs
88

Member Function Documentation

◆ root_folder()

TypedPath selfie_lib.WriteTracker.SnapshotFileLayout.root_folder (   self)

Reimplemented in pytest_selfie.plugin.PytestSnapshotFileLayout.

Definition at line 90 of file WriteTracker.py.

90 def root_folder(self) -> TypedPath:
91 pass
92

◆ sourcefile_for_call()

TypedPath selfie_lib.WriteTracker.SnapshotFileLayout.sourcefile_for_call (   self,
CallLocation  call 
)

Definition at line 93 of file WriteTracker.py.

93 def sourcefile_for_call(self, call: CallLocation) -> TypedPath:
94 file_path = call.file_name
95 if not file_path:
96 raise ValueError("No file path available in CallLocation.")
97 return TypedPath(os.path.abspath(Path(file_path)))
98
99

Member Data Documentation

◆ fs

selfie_lib.WriteTracker.SnapshotFileLayout.fs

Definition at line 87 of file WriteTracker.py.


The documentation for this class was generated from the following file: