Skip to content

Instantly share code, notes, and snippets.

@Geekfish
Created December 5, 2013 21:28
Show Gist options
  • Save Geekfish/7814237 to your computer and use it in GitHub Desktop.
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
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