test_azure_fileshare_10.py 400 B

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