userver: testsuite.daemons.pytest_plugin._DaemonStore Class Reference
Loading...
Searching...
No Matches
testsuite.daemons.pytest_plugin._DaemonStore Class Reference

Detailed Description

Definition at line 54 of file pytest_plugin.py.

Public Member Functions

None __init__ (self)
None aclose (self, skip_multiple=False)
AsyncGenerator[_DaemonScope, None] scope (self, name, spawn, *, bool multiple=False)
 Creates new scope evicting previous daemon.
DaemonInstance request (self, _DaemonScope scope)
bool has_running_daemons (self)

Protected Member Functions

 _cleanup_cell (self, name)
 _close_daemon (self, DaemonInstance daemon)

Static Protected Attributes

dict _cells [str, tuple[_DaemonScope, DaemonInstance]]

Constructor & Destructor Documentation

◆ __init__()

None testsuite.daemons.pytest_plugin._DaemonStore.__init__ ( self)

Definition at line 57 of file pytest_plugin.py.

Member Function Documentation

◆ _cleanup_cell()

testsuite.daemons.pytest_plugin._DaemonStore._cleanup_cell ( self,
name )
protected

Definition at line 108 of file pytest_plugin.py.

◆ _close_daemon()

testsuite.daemons.pytest_plugin._DaemonStore._close_daemon ( self,
DaemonInstance daemon )
protected

Definition at line 114 of file pytest_plugin.py.

◆ aclose()

None testsuite.daemons.pytest_plugin._DaemonStore.aclose ( self,
skip_multiple = False )

Definition at line 60 of file pytest_plugin.py.

◆ has_running_daemons()

bool testsuite.daemons.pytest_plugin._DaemonStore.has_running_daemons ( self)

Definition at line 102 of file pytest_plugin.py.

◆ request()

DaemonInstance testsuite.daemons.pytest_plugin._DaemonStore.request ( self,
_DaemonScope scope )

Definition at line 90 of file pytest_plugin.py.

◆ scope()

AsyncGenerator[_DaemonScope, None] testsuite.daemons.pytest_plugin._DaemonStore.scope ( self,
name,
spawn,
* ,
bool multiple = False )

Creates new scope evicting previous daemon.

:param name: scope identifier. :param spawn: spawner instance. :param multiple: do not fail when this scope is requested with others.

Definition at line 70 of file pytest_plugin.py.

Member Data Documentation

◆ _cells

dict testsuite.daemons.pytest_plugin._DaemonStore._cells [str, tuple[_DaemonScope, DaemonInstance]]
staticprotected

Definition at line 55 of file pytest_plugin.py.


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