Cannot import name 'Test' from partially initialized module 'databricks_test_helper'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2023 11:53 PM
I have done install, with this command ' pip install databricks_test_helper '
next get ImportError messages when i try running this code on cloud databricks ;
from databricks_test_helper import *
expected = set([(s, 'double') for s in ('AP', 'AT', 'PE', 'RH', 'V')])
Test.assertEquals(expected, set(powerPlantDF.dtypes), "Incorrect schema for powerPlantDF")
with message error like this :
ImportError: cannot import name 'Test' from partially initialized module 'databricks_test_helper' (most likely due to a circular import) (/local_disk0/.ephemeral_nfs/envs/pythonEnv-06c00f35-e646-4ea3-8758-203f4b6bb94a/lib/python3.9/site-packages/databricks_test_helper/__init__.py)
What the mistake and what should i do , give me suggest solution please
Thanks