incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [32/34] git commit: Fixed test failing from webtest upgrade
Date Tue, 02 Oct 2012 21:30:29 GMT
Fixed test failing from webtest upgrade


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/d3f57e9a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/d3f57e9a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/d3f57e9a

Branch: refs/heads/db/4968
Commit: d3f57e9ad797059a2c54bbfad112479eda80a7d7
Parents: bba9bcb
Author: Cory Johns <johnsca@geek.net>
Authored: Thu Sep 27 16:48:56 2012 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Thu Sep 27 16:48:56 2012 +0000

----------------------------------------------------------------------
 AlluraTesting/alluratest/validation.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/d3f57e9a/AlluraTesting/alluratest/validation.py
----------------------------------------------------------------------
diff --git a/AlluraTesting/alluratest/validation.py b/AlluraTesting/alluratest/validation.py
index a4bd92c..5aa17d7 100644
--- a/AlluraTesting/alluratest/validation.py
+++ b/AlluraTesting/alluratest/validation.py
@@ -18,6 +18,7 @@ import beaker.session
 from paste.deploy import loadapp
 from paste.script.appinstall import SetupCommand
 from pylons import c, g, url, request, response, session
+import webtest
 from webtest import TestApp
 from webob import Request, Response
 from nose.tools import ok_, assert_true, assert_false
@@ -235,7 +236,7 @@ class PostParamCheckingTestApp(AntiSpamTestApp):
         for k, v in params:
             if not isinstance(k, basestring):
                 raise TypeError('%s key %s is %s, not str' % (method, k, type(k)))
-            if not isinstance(v, basestring):
+            if not isinstance(v, (basestring, webtest.app.File)):
                 raise TypeError('%s key %s has value %s of type %s, not str. ' % (method,
k, v, type(v)))
 
     def get(self, *args, **kwargs):


Mime
View raw message