Used for computing the requests that we need to automatically align the service state with the test fixtures state.  
 More...
 | 
|   | __init__ (self, *mocked_time, testpoint, testpoint_control, caches.InvalidationState invalidation_state) | 
|   | 
|   | updating_state (self, typing.Dict[str, typing.Any] body) | 
|   | Whenever tests_control handler is invoked (by the client itself during prepare or manually by the user), we need to synchronize _state with the (supposed) service state.  
  | 
|   | 
| typing.Dict[str, typing.Any]  | get_pending_update (self) | 
|   | Compose the body of the tests_control request required to completely synchronize the service state with the state of test fixtures.  
  | 
|   | 
Used for computing the requests that we need to automatically align the service state with the test fixtures state. 
Definition at line 1094 of file client.py.
 
◆ __init__()
      
        
          | pytest_userver.client._StateManager.__init__  | 
          ( | 
            | 
          self,  | 
        
        
           | 
           | 
          *  | 
          mocked_time,  | 
        
        
           | 
           | 
            | 
          testpoint,  | 
        
        
           | 
           | 
            | 
          testpoint_control,  | 
        
        
           | 
           | 
          caches.InvalidationState  | 
          invalidation_state  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ _apply_new_state()
  
  
      
        
          | pytest_userver.client._StateManager._apply_new_state  | 
          ( | 
            | 
          self | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Apply new state to related components. 
Definition at line 1181 of file client.py.
 
 
◆ _get_desired_now()
  
  
      
        
          |  typing.Optional[str] pytest_userver.client._StateManager._get_desired_now  | 
          ( | 
            | 
          self | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ _update_state()
  
  
      
        
          |  None pytest_userver.client._StateManager._update_state  | 
          ( | 
            | 
          self,  | 
         
        
           | 
           | 
          typing.Dict[str, typing.Any]  | 
          body  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
 
◆ get_pending_update()
      
        
          |  typing.Dict[str, typing.Any] pytest_userver.client._StateManager.get_pending_update  | 
          ( | 
            | 
          self | ) | 
           | 
        
      
 
Compose the body of the tests_control request required to completely synchronize the service state with the state of test fixtures. 
Definition at line 1134 of file client.py.
 
 
◆ updating_state()
      
        
          | pytest_userver.client._StateManager.updating_state  | 
          ( | 
            | 
          self,  | 
        
        
           | 
           | 
          typing.Dict[str, typing.Any]  | 
          body  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Whenever tests_control handler is invoked (by the client itself during prepare or manually by the user), we need to synchronize _state with the (supposed) service state. 
The state update is decoded from the request body. 
Definition at line 1117 of file client.py.
 
 
◆ _invalidation_state
  
  
      
        
          | pytest_userver.client._StateManager._invalidation_state | 
         
       
   | 
  
protected   | 
  
 
 
◆ _mocked_time
  
  
      
        
          | pytest_userver.client._StateManager._mocked_time | 
         
       
   | 
  
protected   | 
  
 
 
◆ _state
  
  
      
        
          | pytest_userver.client._StateManager._state | 
         
       
   | 
  
protected   | 
  
 
 
◆ _testpoint
  
  
      
        
          | pytest_userver.client._StateManager._testpoint | 
         
       
   | 
  
protected   | 
  
 
 
◆ _testpoint_control
  
  
      
        
          | pytest_userver.client._StateManager._testpoint_control | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file:
- /data/code/service_template/third_party/userver/testsuite/pytest_plugins/pytest_userver/client.py