Selfie
|
Public Member Functions | |
FS | fs (self) |
"Mode" | mode (self) |
SnapshotFileLayout | layout (self) |
bool | source_file_has_writable_comment (self, CallStack call) |
None | write_inline (self, LiteralValue literal_value, CallStack call) |
None | write_to_be_file (self, TypedPath path, ByteString data, CallStack call) |
DiskStorage | disk_thread_local (self) |
Definition at line 30 of file SnapshotSystem.py.
DiskStorage selfie_lib.SnapshotSystem.SnapshotSystem.disk_thread_local | ( | self | ) |
Returns the DiskStorage for the test associated with this thread, else error.
Reimplemented in pytest_selfie.plugin.PytestSnapshotSystem.
Definition at line 67 of file SnapshotSystem.py.
FS selfie_lib.SnapshotSystem.SnapshotSystem.fs | ( | self | ) |
Reimplemented in pytest_selfie.plugin.PytestSnapshotSystem.
Definition at line 33 of file SnapshotSystem.py.
SnapshotFileLayout selfie_lib.SnapshotSystem.SnapshotSystem.layout | ( | self | ) |
Reimplemented in pytest_selfie.plugin.PytestSnapshotSystem.
Definition at line 41 of file SnapshotSystem.py.
"Mode" selfie_lib.SnapshotSystem.SnapshotSystem.mode | ( | self | ) |
Reimplemented in pytest_selfie.plugin.PytestSnapshotSystem.
Definition at line 37 of file SnapshotSystem.py.
bool selfie_lib.SnapshotSystem.SnapshotSystem.source_file_has_writable_comment | ( | self, | |
CallStack | call | ||
) |
Returns true if the sourcecode for the given call has a writable annotation.
Reimplemented in pytest_selfie.plugin.PytestSnapshotSystem.
Definition at line 44 of file SnapshotSystem.py.
None selfie_lib.SnapshotSystem.SnapshotSystem.write_inline | ( | self, | |
LiteralValue | literal_value, | ||
CallStack | call | ||
) |
Indicates that the following value should be written into test sourcecode.
Reimplemented in pytest_selfie.plugin.PytestSnapshotSystem.
Definition at line 51 of file SnapshotSystem.py.
None selfie_lib.SnapshotSystem.SnapshotSystem.write_to_be_file | ( | self, | |
TypedPath | path, | ||
ByteString | data, | ||
CallStack | call | ||
) |
Writes the given bytes to the given file, checking for duplicate writes.
Reimplemented in pytest_selfie.plugin.PytestSnapshotSystem.
Definition at line 58 of file SnapshotSystem.py.