test_azure_fileshare_16.py 393 B

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