Opened 18 years ago
Closed 18 years ago
#3710 closed (duplicate)
django won't test a views-only app
Reported by: | Owned by: | Jacob | |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
My project includes an app which has views and tests, but no models. The django test runner used to run its tests just fine, but something changed during the last few weeks (don't know when, I haven't run tests on my app much lately.)
Now when I test my project, it skips the views-only app ("qnr"), and if I try an explicit [manage.py --verbosity=2 test qnr] django complains:[[[
File "C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\loading.py", line 47, in get_app
raise ImproperlyConfigured, "App with label %s could not be found" % app_label
django.core.exceptions.ImproperlyConfigured: App with label qnr could not be found
]]]
Digging into django/db/models/loading.py shows that it IS finding the app, but it has no models... and I can't just set it to true, because the callers are expecting a reference to the app's models. I'm going to have to create a dummy models.py to make the tests go as a temporary workaround, please think about a fix in the meantime...
Change History (4)
comment:1 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 by , 18 years ago
buit this is not closed, I'm experiencing the same failure with svn HEAD as of March,5 2007.
I think the bug closed on 3310 was reintroduced.
comment:3 by , 18 years ago
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
comment:4 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | reopened → closed |
Duplicate of #3310.