You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2012/10/02 23:30:29 UTC
[32/34] git commit: Fixed test failing from webtest upgrade
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 <jo...@geek.net>
Authored: Thu Sep 27 16:48:56 2012 +0000
Committer: Cory Johns <jo...@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):