disqus / gargoyle

Feature switches in Django
http://engineering.disqus.com
Apache License 2.0
746 stars 112 forks source link

Switch control in tests #75

Closed sgillis closed 10 years ago

sgillis commented 10 years ago

Introduced a new parameter in the SwitchContextManager to pass a dictionary with switches. This enables the user to set more complicated switches in unittests, e.g.: parent:child.

mattrobenolt commented 10 years ago

You can just do:

@switches(**{'parent:child': True})