|
Selfie
|
Public Member Functions | |
| __init__ (self, PytestSnapshotSystem system, TypedPath test_file) | |
| assert_not_terminated (self) | |
| test_start (self, str testname) | |
| test_failed (self, str testname) | |
| test_finish (self, str testname) | |
| keep (self, str test, Optional[str] suffix_or_all) | |
| write (self, str test, str suffix, Snapshot snapshot, CallStack call_stack, SnapshotFileLayout layout) | |
| Optional[Snapshot] | read (self, str test, str suffix) |
| SnapshotFile | read_file (self) |
Public Attributes | |
| system = system | |
| test_file = test_file | |
| int | finishes_expected = 0 |
| int | finishes_so_far = 0 |
| bool | has_failed = False |
| Optional[SnapshotFile] | file = None |
| AtomicReference[ArrayMap[str, WithinTestGC]] | tests |
| Optional[DiskWriteTracker] | disk_write_tracker = DiskWriteTracker() |
| Optional[str] | testname_in_progress = None |
| bool | testname_in_progress_failed = False |
Static Public Attributes | |
| TERMINATED = ArrayMap.empty().plus(" ~ / f!n1shed / ~ ", WithinTestGC()) | |
| pytest_selfie.plugin.SnapshotFileProgress.__init__ | ( | self, | |
| PytestSnapshotSystem | system, | ||
| TypedPath | test_file ) |
Definition at line 290 of file plugin.py.
| pytest_selfie.plugin.SnapshotFileProgress.assert_not_terminated | ( | self | ) |
| pytest_selfie.plugin.SnapshotFileProgress.keep | ( | self, | |
| str | test, | ||
| Optional[str] | suffix_or_all ) |
| Optional[Snapshot] pytest_selfie.plugin.SnapshotFileProgress.read | ( | self, | |
| str | test, | ||
| str | suffix ) |
Definition at line 422 of file plugin.py.
| SnapshotFile pytest_selfie.plugin.SnapshotFileProgress.read_file | ( | self | ) |
Definition at line 429 of file plugin.py.
| pytest_selfie.plugin.SnapshotFileProgress.test_failed | ( | self, | |
| str | testname ) |
| pytest_selfie.plugin.SnapshotFileProgress.test_finish | ( | self, | |
| str | testname ) |
| pytest_selfie.plugin.SnapshotFileProgress.test_start | ( | self, | |
| str | testname ) |
Definition at line 318 of file plugin.py.
| pytest_selfie.plugin.SnapshotFileProgress.write | ( | self, | |
| str | test, | ||
| str | suffix, | ||
| Snapshot | snapshot, | ||
| CallStack | call_stack, | ||
| SnapshotFileLayout | layout ) |
| Optional[DiskWriteTracker] pytest_selfie.plugin.SnapshotFileProgress.disk_write_tracker = DiskWriteTracker() |
| Optional[SnapshotFile] pytest_selfie.plugin.SnapshotFileProgress.file = None |
| int pytest_selfie.plugin.SnapshotFileProgress.finishes_expected = 0 |
| int pytest_selfie.plugin.SnapshotFileProgress.finishes_so_far = 0 |
| bool pytest_selfie.plugin.SnapshotFileProgress.has_failed = False |
|
static |
| pytest_selfie.plugin.SnapshotFileProgress.test_file = test_file |
| Optional[str] pytest_selfie.plugin.SnapshotFileProgress.testname_in_progress = None |
| bool pytest_selfie.plugin.SnapshotFileProgress.testname_in_progress_failed = False |
| AtomicReference[ArrayMap[str, WithinTestGC]] pytest_selfie.plugin.SnapshotFileProgress.tests |