【发布时间】:2013-12-27 22:40:12
【问题描述】:
目前,我们只能在提供的test_project 中运行./manage.py test autocomplete_light,因为它已将它们添加到INSTALLED_APPS。
由于用户需求,我对 v2 的目标是在用户项目中启用测试。首先要做的是将example apps 移动到subdir of the module。
现在,我只需要能够在测试用例中添加它们和它们的 url。
我尝试了overriding settings with the provided method,但这会覆盖在数据库创建之后的设置。
【问题讨论】: