test_azure_fileshare_17.py 419 B

1234567
  1. def test_get_file_to_stream(self, mock_service):
  2. mock_instance = mock_service.return_value
  3. hook = AzureFileShareHook(azure_fileshare_conn_id='azure_fileshare_extras')
  4. hook.get_file_to_stream('stream', 'share', 'directory', 'file', max_connections=1)
  5. mock_instance.get_file_to_stream.assert_called_once_with(
  6. 'share', 'directory', 'file', 'stream', max_connections=1
  7. )