我在异步代码中使用Django ORM。一切工作正常,所有测试都通过了。但是,数据库连接在测试后不会正确关闭。def test2(self): self.assertEqual(1, c)django.db.utils.OperationalErroraccessed by other userssqlite3.OperationalError: databas
在Django中设置时,我能够通过自己导航到页面,成功地显示模型中的项目列表。当准备用pytest编写测试以验证导航到“核对表_GTD/存档/”页时,测试失败时消息:E assert8", url="/checklist_GTD/archive/">.status_code
test_archive.py:4: A