Commits

Anonymous committed 8983cad

add patch

Comments (0)

Files changed (1)

django_webtest/__init__.py

                    url, params, headers, extra_environ, status,
                    upload_files, expect_errors, content_type)
 
+    def patch(self, url, params='', headers=None, extra_environ=None,
+             status=None, upload_files=None, expect_errors=False,
+             content_type=None, user=None):
+        extra_environ = self._update_environ(extra_environ, user)
+        return super(DjangoTestApp, self).patch(
+                   url, params, headers, extra_environ, status,
+                   upload_files, expect_errors, content_type)
+
     def delete(self, url, params='', headers=None, extra_environ=None,
              status=None, expect_errors=False,
              content_type=None, user=None):