阅读背景:

Django功能LiveServerTestCase - 使用selenium提交表单后,对象保存到非测试数据库

来源:互联网 

Absolutely losing my brain over this. I can't figure out why this is happening. Each time I run this test, the object gets saved to the normal, non-test database. However, both assertions at the end of the test fail anyway, saying they can't find ANY users in the database, even though each time the test runs I have to go into the admin to delete the objects it's created on localhost. I'm using SQLITE3 in my settings, and I understand that SQLITE tests are supposed to run in memory, rather than hitting the database. I've searched and searched and can't find any useful information on the web. Here's the test function: Absolutely losing my brain over this. I can't f




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: