#15063: multi_db flag on TestCase causes invalid error reporting ---------------------------+------------------------------------------------ Reporter: dcramer | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: 1.2 Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ When setting multi_db = True on a test case you may encounter aliases which do not allow synchronization with specific tables. Due to the behavior of the fixture loader, it sees that no objects were loaded for these specific aliases and prints an exception to stderr and runs a rollback command.
The chunk of code in reference is here http://code.djangoproject.com/browser/django/trunk/django/core/management/commands/loaddata.py#L196 (For posterity, the 'if objects_in_fixture == 0:' error assumption is what causes this behavior) -- Ticket URL: <http://code.djangoproject.com/ticket/15063> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
