Selfie
Loading...
Searching...
No Matches
selfie_lib.SnapshotSystem Namespace Reference

Classes

class  DiskStorage
 
class  Mode
 
class  SnapshotSystem
 

Functions

"SnapshotSystem" _selfieSystem ()
 
 _initSelfieSystem (SnapshotSystem system)
 
 _clearSelfieSystem (SnapshotSystem system)
 

Variables

 selfieSystem = None
 

Function Documentation

◆ _clearSelfieSystem()

selfie_lib.SnapshotSystem._clearSelfieSystem ( SnapshotSystem  system)
protected

Definition at line 92 of file SnapshotSystem.py.

92def _clearSelfieSystem(system: SnapshotSystem):
93 global selfieSystem
94 if selfieSystem is not system:
95 raise Exception("This was not the running system!")
96 selfieSystem = None
97
98

◆ _initSelfieSystem()

selfie_lib.SnapshotSystem._initSelfieSystem ( SnapshotSystem  system)
protected

Definition at line 85 of file SnapshotSystem.py.

85def _initSelfieSystem(system: SnapshotSystem):
86 global selfieSystem
87 if selfieSystem is not None:
88 raise Exception("Selfie system already initialized")
89 selfieSystem = system
90
91

◆ _selfieSystem()

"SnapshotSystem" selfie_lib.SnapshotSystem._selfieSystem ( )
protected

Definition at line 77 of file SnapshotSystem.py.

77def _selfieSystem() -> "SnapshotSystem":
78 if selfieSystem is None:
79 raise Exception(
80 "Selfie system not initialized, make sure that `pytest-selfie` is installed and that you are running tests with `pytest`."
81 )
82 return selfieSystem
83
84

Variable Documentation

◆ selfieSystem

selfie_lib.SnapshotSystem.selfieSystem = None

Definition at line 74 of file SnapshotSystem.py.