【发布时间】:2020-11-13 08:47:10
【问题描述】:
我的项目清单:
main_project
- tests/
- main_project
- project1/
- django_project/
- tests/
- django_app/
- django_project/
- manage.py
现在,当我在main_project 路径上运行pytest ./projects/django_project,它可以通过django_project pytest。
但我想运行一个 pytest 来运行整个 pytest,包括 main_project 路径上的 project1 和 django_project,它通过了所有 project1 pytest,但是当我运行时自动跳过了 django_project 的 pytest pytest -rsx 显示:
SKIPPED [2] .../local/lib/python3.6/site-packages/pytest-django/lazy_django.py:14: no Django settings
有什么建议吗?谢谢!
【问题讨论】:
标签: python django pytest-django