Skip to content

Commit

Permalink
[#2939] Fix tests in tests/functional/api/base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 12, 2012
1 parent 9aa2463 commit fbf5a4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/tests/functional/api/base.py
Expand Up @@ -44,6 +44,8 @@ def get(self, offset, status=[200]):

def post(self, offset, data, status=[200,201], *args, **kwds):
params = '%s=1' % url_escape(self.dumps(data))
if 'extra_environ' in kwds:
self.extra_environ = kwds['extra_environ']
response = self.app.post(offset, params=params, status=status,
extra_environ=self.get_extra_environ())
return response
Expand Down

0 comments on commit fbf5a4a

Please sign in to comment.