Commits

James Crasta  committed 6296a7c

Fix so ext.sqlalchemy tests don't rely on werkzeug

  • Participants
  • Parent commits 879809c

Comments (0)

Files changed (1)

File tests/ext_sqlalchemy.py

         self.UserForm = UserForm
 
     def test_validate(self):
-        from werkzeug.datastructures import MultiDict
-        user_form = self.UserForm(formdata=MultiDict([('username',
-            'spiderman')]))
+        user_form = self.UserForm(DummyPostData(username=[u'spiderman']))
         self.assertTrue(user_form.validate())
 
     def test_wrong(self):
-        from werkzeug.datastructures import MultiDict
-        user_form = self.UserForm(formdata=MultiDict([('username',
-            'batman')]))
+        user_form = self.UserForm(DummyPostData(username=[u'batman']))
         self.assertFalse(user_form.validate())