Created
December 5, 2013 21:28
-
-
Save Geekfish/7814237 to your computer and use it in GitHub Desktop.
The only way I found to make urls monkey patching work in a TestCase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyTestCase(TestCase): | |
urls = 'my_app.urls' # This is the default urls module | |
def setUp(self): | |
the_monkey_patching() | |
def tearDown(self): | |
the_cleanup() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment