malthe commented on PR #34766:
URL: https://github.com/apache/airflow/pull/34766#issuecomment-1833617208

   @arjunanan6 now, to test this, you would build on the existing suite:
   ```python
   class TestPsrpHook:
       ....
       def test_get_conn(self, runspace_pool, *mocks):
           with PsrpHook(CONNECTION_ID):
               # Assert that the `runspace_pool` has been entered into, i.e. 
opened.
   ```
   Something along the lines of
   ```python
   assert runspace_pool.return_value.__enter__.mock_calls == [call()]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to