userver: pytest_userver.plugins.postgresql.RegisteredNtrx Class Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.postgresql.RegisteredNtrx Class Reference

Detailed Description

Definition at line 30 of file postgresql.py.

Public Member Functions

 __init__ (self, testpoint)
 
bool is_failure_enabled (self, str name)
 
 mock_failure (self, str name, RegisteredNtrxFailureType failure_type=RegisteredNtrxFailureType.Error)
 

Protected Member Functions

None _enable_failure (self, str name, RegisteredNtrxFailureType failure_type)
 
None _disable_failure (self, str name)
 
RegisteredNtrxFailureType _get_failure_type (self, str name)
 

Protected Attributes

 _registered_ntrx
 
 _testpoint
 

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.plugins.postgresql.RegisteredNtrx.__init__ ( self,
testpoint )

Definition at line 31 of file postgresql.py.

Member Function Documentation

◆ _disable_failure()

None pytest_userver.plugins.postgresql.RegisteredNtrx._disable_failure ( self,
str name )
protected

Definition at line 47 of file postgresql.py.

◆ _enable_failure()

None pytest_userver.plugins.postgresql.RegisteredNtrx._enable_failure ( self,
str name,
RegisteredNtrxFailureType failure_type )
protected

Definition at line 35 of file postgresql.py.

◆ _get_failure_type()

RegisteredNtrxFailureType pytest_userver.plugins.postgresql.RegisteredNtrx._get_failure_type ( self,
str name )
protected

Definition at line 51 of file postgresql.py.

◆ is_failure_enabled()

bool pytest_userver.plugins.postgresql.RegisteredNtrx.is_failure_enabled ( self,
str name )

Definition at line 54 of file postgresql.py.

◆ mock_failure()

pytest_userver.plugins.postgresql.RegisteredNtrx.mock_failure ( self,
str name,
RegisteredNtrxFailureType failure_type = RegisteredNtrxFailureType.Error )

Definition at line 58 of file postgresql.py.

Member Data Documentation

◆ _registered_ntrx

pytest_userver.plugins.postgresql.RegisteredNtrx._registered_ntrx
protected

Definition at line 32 of file postgresql.py.

◆ _testpoint

pytest_userver.plugins.postgresql.RegisteredNtrx._testpoint
protected

Definition at line 33 of file postgresql.py.


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