0
Follow
0
View

How to access a method from pytest, if there's no explicit root package or module

dxw914 注册会员
2023-01-25 22:44

If you run pytest from your project root with

python -m pytest

you then have to import the function, as you guessed, with:

from src.myfile import my_func1