#21281: trying to override settings in test case setUpClass -----------------------------------+-------------------- Reporter: anonymous | Owner: nobody Type: Uncategorized | Status: new Component: Testing framework | Version: 1.5 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------------+-------------------- The override_settings decorator doesn't effect the setUpClass method (I believe this is because class decorators don't effect classmethods) and as the self.settings() method requires an object instance, there is no easy way to change the settings for the setUpClass method.
Is there any reason settings() requires an instance and couldn't be class based? -- Ticket URL: <https://code.djangoproject.com/ticket/21281> 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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/052.91da6932f15d445e3c038ecf519389c7%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.