pulsar
pulsar copied to clipboard
Override config in context manager?
Is there anyway to override config in a context manager, such as for individual unit tests? For instance:
class MyTestCase(TestCase):
override_config('SMTP_SETTINGS', {'host': 'localhost'})
def test_something(self):
send_mail()