test_azure_fileshare_2.py 351 B

12345678
  1. def test_key_and_connection(self):
  2. from azure.storage.file import FileService
  3. hook = AzureFileShareHook(azure_fileshare_conn_id='azure_fileshare_test_key')
  4. assert hook.conn_id == 'azure_fileshare_test_key'
  5. assert hook._conn is None
  6. print(hook.get_conn())
  7. assert isinstance(hook.get_conn(), FileService)