Selfie
|
Public Member Functions | |
__init__ (self, SelfieSettingsAPI settings) | |
planning_to_run (self, TypedPath testfile, str testname) | |
mark_path_as_written (self, TypedPath path) | |
test_start (self, TypedPath testfile, str testname) | |
test_failed (self, TypedPath testfile, str testname) | |
test_finish (self, TypedPath testfile, str testname) | |
finished_all_tests (self) | |
Mode | mode (self) |
FS | fs (self) |
SnapshotFileLayout | layout (self) |
DiskStorage | disk_thread_local (self) |
bool | source_file_has_writable_comment (self, CallStack call) |
write_inline (self, LiteralValue literal_value, CallStack call) | |
None | write_to_be_file (self, TypedPath path, "ByteString" data, CallStack call) |
Public Attributes | |
layout_pytest | |
layout | |
pytest_selfie.plugin.PytestSnapshotSystem.__init__ | ( | self, | |
SelfieSettingsAPI | settings | ||
) |
Definition at line 151 of file plugin.py.
DiskStorage pytest_selfie.plugin.PytestSnapshotSystem.disk_thread_local | ( | self | ) |
Returns the DiskStorage for the test associated with this thread, else error.
Reimplemented from selfie_lib.SnapshotSystem.SnapshotSystem.
Definition at line 236 of file plugin.py.
pytest_selfie.plugin.PytestSnapshotSystem.finished_all_tests | ( | self | ) |
Definition at line 208 of file plugin.py.
FS pytest_selfie.plugin.PytestSnapshotSystem.fs | ( | self | ) |
Reimplemented from selfie_lib.SnapshotSystem.SnapshotSystem.
Definition at line 229 of file plugin.py.
SnapshotFileLayout pytest_selfie.plugin.PytestSnapshotSystem.layout | ( | self | ) |
Reimplemented from selfie_lib.SnapshotSystem.SnapshotSystem.
Definition at line 233 of file plugin.py.
pytest_selfie.plugin.PytestSnapshotSystem.mark_path_as_written | ( | self, | |
TypedPath | path | ||
) |
Definition at line 173 of file plugin.py.
Mode pytest_selfie.plugin.PytestSnapshotSystem.mode | ( | self | ) |
Reimplemented from selfie_lib.SnapshotSystem.SnapshotSystem.
Definition at line 225 of file plugin.py.
pytest_selfie.plugin.PytestSnapshotSystem.planning_to_run | ( | self, | |
TypedPath | testfile, | ||
str | testname | ||
) |
bool pytest_selfie.plugin.PytestSnapshotSystem.source_file_has_writable_comment | ( | self, | |
CallStack | call | ||
) |
Returns true if the sourcecode for the given call has a writable annotation.
Reimplemented from selfie_lib.SnapshotSystem.SnapshotSystem.
Definition at line 246 of file plugin.py.
pytest_selfie.plugin.PytestSnapshotSystem.test_failed | ( | self, | |
TypedPath | testfile, | ||
str | testname | ||
) |
pytest_selfie.plugin.PytestSnapshotSystem.test_finish | ( | self, | |
TypedPath | testfile, | ||
str | testname | ||
) |
pytest_selfie.plugin.PytestSnapshotSystem.test_start | ( | self, | |
TypedPath | testfile, | ||
str | testname | ||
) |
Definition at line 183 of file plugin.py.
pytest_selfie.plugin.PytestSnapshotSystem.write_inline | ( | self, | |
LiteralValue | literal_value, | ||
CallStack | call | ||
) |
Indicates that the following value should be written into test sourcecode.
Reimplemented from selfie_lib.SnapshotSystem.SnapshotSystem.
Definition at line 249 of file plugin.py.
None pytest_selfie.plugin.PytestSnapshotSystem.write_to_be_file | ( | self, | |
TypedPath | path, | ||
"ByteString" | data, | ||
CallStack | call | ||
) |
Writes the given bytes to the given file, checking for duplicate writes.
Reimplemented from selfie_lib.SnapshotSystem.SnapshotSystem.
Definition at line 252 of file plugin.py.