-
-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete of test-only object cause DatabaseError #116
Comments
I can't access the internet to reproduce your environment right now, but I have failed to reproduce this on python 2.7, python 3.3, django 1.5, nose 1.2.1, and django_nose 1.1 on jonashaag's fork which works on py3 I'll try later with your exact environment. perhaps you could try upgrading django or django_nose? |
I tried it with fresh environment with:
And I can't reproduce it again. I'm a little confused. I can still reproduce it in an environment of a my huge Django project where are tens of packages. I probably used that environment by mistake when I was writing this issue. Sorry for confusion. However it happens only when I use django-nose test runner. With Django's default test runner it works fine in the same environment. So I assumed it's django-nose issue. But now it looks like it's probably related to another package too. I'll investigate it further. |
I can't find out what causes this problem and how to properly reproduce it in clean environment. However I found more info about the same error here: #15 (comment) Hack described there works for me so I'm closing this issue until I'll know whats the cause for this error. |
Yes I tried. Patch #111 works fine for building test-only models database, but does not affect this issue. |
I am still having django.db.utils.OperationalError: no such table: error while calling the .objects.create() method (rather than delete) with below env:
|
I have myapp (which is in settings.INSTALLED_APPS):
tests.py:
Because django-nose has bugged support for test-only models (issue #15) and it's still not possible to run tests as "./manage.py test", I run tests with workaround for issue #15 specifying all apps names:
And I get error caused by attempt to delete object which is instance of test-only model. Traceback:
Packages:
The text was updated successfully, but these errors were encountered: