Pytest Django ModuleNotFoundError:没有名为*的模块

时间:2019-04-17 09:14:39

标签: python django pytest

可能是问题所在,pytest引发-ModuleNotFoundError:没有名为“ order”的模块,但是Django服务器运行正常

* settings.py INSTALLED_APPS = [..., "order"]

结构:

app/ order/ apps.py __init__.py settings.py __init__.py manage.py tests/ pytest.ini

如果使用INSTALLED_APPS = [...,“ app.order”],它可以工作,我怎么能只使用“ order”?

0 个答案:

没有答案