[ckan-changes] [okfn/ckan] eb83b4: add __init__ to logic and fix up tests that fail
GitHub
noreply at github.com
Sat Apr 21 14:38:23 UTC 2012
Branch: refs/heads/master
Home: https://github.com/okfn/ckan
Commit: eb83b48ac8fe974160d0a291119428d5dcf30367
https://github.com/okfn/ckan/commit/eb83b48ac8fe974160d0a291119428d5dcf30367
Author: kindly <kindly at gmail.com>
Date: 2012-04-21 (Sat, 21 Apr 2012)
Changed paths:
A ckan/tests/logic/__init__.py
M ckan/tests/logic/test_action.py
Log Message:
-----------
add __init__ to logic and fix up tests that fail
diff --git a/ckan/tests/logic/__init__.py b/ckan/tests/logic/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/ckan/tests/logic/test_action.py b/ckan/tests/logic/test_action.py
index de96e6e..a3294f1 100644
--- a/ckan/tests/logic/test_action.py
+++ b/ckan/tests/logic/test_action.py
@@ -1615,7 +1615,7 @@ def test_1_update_single(self):
assert json.loads(res.body)['success']
- postparams = '%s=1' % json.dumps({"term" : "moo"})
+ postparams = '%s=1' % json.dumps({"terms" : ["moo"]})
res = self.app.post('/api/action/term_translation_show', params=postparams,
extra_environ={'Authorization': str(self.sysadmin_user.apikey)},
@@ -1649,7 +1649,7 @@ def test_2_update_many(self):
assert json.loads(res.body)['result']['success'] == '3 rows updated', json.loads(res.body)
- postparams = '%s=1' % json.dumps({"term" : "many"})
+ postparams = '%s=1' % json.dumps({"terms" : ["many"]})
res = self.app.post('/api/action/term_translation_show', params=postparams,
extra_environ={'Authorization': str(self.sysadmin_user.apikey)},
status=200)
================================================================
More information about the ckan-changes
mailing list