Commits

Mikhail Korobov  committed c490123

Fix self.app.delete warnings (see https://github.com/Pylons/webtest/issues/50)

  • Participants
  • Parent commits 10bbf55

Comments (0)

Files changed (1)

File django_webtest/__init__.py

     from django.contrib.staticfiles.handlers import StaticFilesHandler
 
 from webtest import TestApp
+try:
+    from webtest.utils import NoDefault
+except ImportError:
+    NoDefault = ''
 
 from django_webtest.response import DjangoWebtestResponse
 from django_webtest.compat import to_string, to_wsgi_safe_string
         return super(DjangoTestApp, self).options(
                    url, params, headers, extra_environ, status)
 
-    def delete(self, url, params='', headers=None, extra_environ=None,
+    def delete(self, url, params=NoDefault, headers=None, extra_environ=None,
              status=None, expect_errors=False,
              content_type=None, user=None):
         extra_environ = self._update_environ(extra_environ, user)