当前分类:pytest-django

django - 即使有标记,pytest-django 也不允许访问数据库

pytest - 为什么 pytest-xdist 使我的测试运行得更慢,而不是更快?

python - pytest:使用固定装置对基于类的测试进行参数化(pytest-django)

python - 连接到测试数据库的 Pytest 错误

python - pytest django 从 yaml 文件加载数据库数据

django - 在 Django 2 中模拟一个 RelatedManager

python - 获取测试套件中每个测试的 SQL 查询计数概览

python - 尝试在方法上使用 mock.patch 时出现 ModuleNotFoundError

python - 如何在 django TestCase 中使用 pytest 固定装置

python-3.x - pytest 和 Failed : Database access not allowed, 使用 "django_db"标记,或 "db"或 "transactional_db"固定装置来启用它

python - Pytest:查找每个测试的开始和结束时间

django - 如何覆盖 Django 测试中的数据库设置?

pytest - 在 py.test 中实现 setUpTestData 样式行为的正确方法是什么

django - 如何检查是否安装了 pytest-django 以及为什么客户端装置不起作用?

django - pytest-django:设置用户权限

django - 如何在使用 pytest-django 的测试之间将数据保存到数据库?

pytest-django - 如何使用 pytest-django 设置 postgres 数据库?

pytest - 如何为某些测试停用 django 插件?

在使用 pytest-django 进行测试期间,Django 连接对象看不到第二个数据库的表

python - "Apps aren' t 已加载”尝试运行 pytest-django 时

热门标签: