Diff of /Allura/allura/tests/unit/patches.py [e16326] .. [1f90c6]  Maximize  Restore

Switch to side-by-side view

--- a/Allura/allura/tests/unit/patches.py
+++ b/Allura/allura/tests/unit/patches.py
@@ -1,4 +1,4 @@
-from mock import Mock, patch, patch_object
+from mock import Mock, patch
 from pylons import c
 from allura.tests.unit.factories import create_project, create_app_config
@@ -10,7 +10,7 @@
     app = Mock()
     app.__version__ = '0'
     app.config = app_config
-    return patch_object(c, 'app', app, create=True)
+    return patch.object(c, 'app', app, create=True)
 def project_app_loading_patch(test_case):

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks