MCPcopy
hub / github.com/django/django / modify_settings

Method modify_settings

django/test/testcases.py:401–406  ·  view source on GitHub ↗

A context manager that temporarily applies changes to a list setting and reverts back to the original value when exiting the context.

(self, **kwargs)

Source from the content-addressed store, hash-verified

399 return override_settings(**kwargs)
400
401 def modify_settings(self, **kwargs):
402 """
403 A context manager that temporarily applies changes to a list setting
404 and reverts back to the original value when exiting the context.
405 """
406 return modify_settings(**kwargs)
407
408 def assertRedirects(
409 self,

Calls 1

modify_settingsClass · 0.90

Tested by

no test coverage detected