#18417: override_settings doesn't work with unittest.TestCase subclasses -------------------------------------+------------------------------------- Reporter: claudep | Owner: nobody Type: Bug | Status: new Component: Testing framework | Version: 1.4 Severity: Normal | Resolution: Keywords: | Triage Stage: Design Has patch: 1 | decision needed Needs tests: 0 | Needs documentation: 0 Easy pickings: 0 | Patch needs improvement: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by claudep): The attached patch raises an exception if the decorated class is not a subclass of SimpleTestCase. Note that currently this works only for TransactionTestCase, but the current documentation tells that SimpleTestCase can be decorated by override_settings (and I also think it should) (https://docs.djangoproject.com/en/dev/topics/testing/#django.test.SimpleTestCase). -- Ticket URL: <https://code.djangoproject.com/ticket/18417#comment:5> Django <https://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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.