Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.

Override config in context manager? #281

Open
carn1x opened this issue Jul 27, 2017 · 0 comments
Open

Override config in context manager? #281

carn1x opened this issue Jul 27, 2017 · 0 comments

Comments

@carn1x
Copy link

carn1x commented Jul 27, 2017

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()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant