Hello. I have a simple class and a simple test.
I’ve created packages com.my.pack and class My1.py
1
2
3
4
5
6 class
My1:
val1
=
"ABC"
val2
=
12345
def
init(
self
):
print
(
"init class My1"
)
And I’ve created class TestMy1.py
1
2
3
4 from
com.my.pack
import
My1
class
TestMy1:
my1
=
My1()
When I’m trying to run a test the exception occurs
Error:from com.my.pack import My1
ModuleNotFoundError: No module named 'com':