userver: testsuite.environment.control.TestsuiteEnvironment Class Reference
Loading...
Searching...
No Matches
testsuite.environment.control.TestsuiteEnvironment Class Reference

Detailed Description

Definition at line 106 of file control.py.

Inheritance diagram for testsuite.environment.control.TestsuiteEnvironment:

Public Member Functions

None __init__ (self, Config config)
None register_service (self, str name, factory)
None ensure_started (self, str service_name, **kwargs)
None start_service (self, str service_name, **kwargs)
None stop_service (self, str service_name)
None close (self)

Public Attributes

 config = config

Protected Member Functions

service.ScriptService _create_service (self, str service_name, **kwargs)
pathlib.Path _get_working_dir_for (self, str service_name)

Static Protected Attributes

dict _services [str, service.ScriptService]
list _services_start_order [str]
dict _env [str, str] | None
dict _service_factories [str, typing.Callable]

Constructor & Destructor Documentation

◆ __init__()

None testsuite.environment.control.TestsuiteEnvironment.__init__ ( self,
Config config )

Definition at line 107 of file control.py.

Member Function Documentation

◆ _create_service()

service.ScriptService testsuite.environment.control.Environment._create_service ( self,
str service_name,
** kwargs )
protectedinherited

Definition at line 80 of file control.py.

◆ _get_working_dir_for()

pathlib.Path testsuite.environment.control.Environment._get_working_dir_for ( self,
str service_name )
protectedinherited

Definition at line 95 of file control.py.

◆ close()

None testsuite.environment.control.Environment.close ( self)
inherited

Definition at line 74 of file control.py.

◆ ensure_started()

None testsuite.environment.control.Environment.ensure_started ( self,
str service_name,
** kwargs )
inherited

Definition at line 55 of file control.py.

◆ register_service()

None testsuite.environment.control.Environment.register_service ( self,
str name,
factory )
inherited

Definition at line 52 of file control.py.

◆ start_service()

None testsuite.environment.control.Environment.start_service ( self,
str service_name,
** kwargs )
inherited

Definition at line 59 of file control.py.

◆ stop_service()

None testsuite.environment.control.Environment.stop_service ( self,
str service_name )
inherited

Definition at line 68 of file control.py.

Member Data Documentation

◆ _env

dict testsuite.environment.control.Environment._env [str, str] | None
staticprotectedinherited

Definition at line 38 of file control.py.

◆ _service_factories

dict testsuite.environment.control.Environment._service_factories [str, typing.Callable]
staticprotectedinherited

Definition at line 39 of file control.py.

◆ _services

dict testsuite.environment.control.Environment._services [str, service.ScriptService]
staticprotectedinherited

Definition at line 36 of file control.py.

◆ _services_start_order

list testsuite.environment.control.Environment._services_start_order [str]
staticprotectedinherited

Definition at line 37 of file control.py.

◆ config

testsuite.environment.control.Environment.config = config
inherited

Definition at line 46 of file control.py.


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