userver: pytest_userver.plugins.log_capture.CaptureControl Class Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.log_capture.CaptureControl Class Reference

Detailed Description

Definition at line 104 of file log_capture.py.

Public Member Functions

 __init__ (self, *str log_level)
 
 wait_for_client (self, float timeout=10.0)
 
 start_capture (self, *typing.Optional[str] log_level=None, float timeout=10.0)
 
 start_server (self, *sock, loop=None)
 

Public Attributes

 default_log_level
 

Protected Member Functions

 _handle_client (self, reader, writer)
 

Protected Attributes

 _tasks
 
 _client_cond
 
 _capture
 
 _handle_client
 

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.plugins.log_capture.CaptureControl.__init__ ( self,
*str log_level )

Definition at line 105 of file log_capture.py.

Member Function Documentation

◆ _handle_client()

pytest_userver.plugins.log_capture.CaptureControl._handle_client ( self,
reader,
writer )
protected

Definition at line 163 of file log_capture.py.

◆ start_capture()

pytest_userver.plugins.log_capture.CaptureControl.start_capture ( self,
*typing.Optional[str] log_level = None,
float timeout = 10.0 )

Definition at line 125 of file log_capture.py.

◆ start_server()

pytest_userver.plugins.log_capture.CaptureControl.start_server ( self,
* sock,
loop = None )

Definition at line 150 of file log_capture.py.

◆ wait_for_client()

pytest_userver.plugins.log_capture.CaptureControl.wait_for_client ( self,
float timeout = 10.0 )

Definition at line 111 of file log_capture.py.

Member Data Documentation

◆ _capture

pytest_userver.plugins.log_capture.CaptureControl._capture
protected

Definition at line 135 of file log_capture.py.

◆ _client_cond

pytest_userver.plugins.log_capture.CaptureControl._client_cond
protected

Definition at line 109 of file log_capture.py.

◆ _handle_client

pytest_userver.plugins.log_capture.CaptureControl._handle_client
protected

Definition at line 155 of file log_capture.py.

◆ _tasks

pytest_userver.plugins.log_capture.CaptureControl._tasks
protected

Definition at line 108 of file log_capture.py.

◆ default_log_level

pytest_userver.plugins.log_capture.CaptureControl.default_log_level

Definition at line 106 of file log_capture.py.


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