This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/ckanext/dgu/plugin.py b/ckanext/dgu/plugin.py | |
| index 1da26dc..ce1dfbf 100644 | |
| --- a/ckanext/dgu/plugin.py | |
| +++ b/ckanext/dgu/plugin.py | |
| @@ -13,6 +13,7 @@ from ckan.plugins import IMiddleware | |
| from ckan.plugins import IAuthFunctions | |
| from ckan.plugins import IPackageController | |
| from ckan.plugins import ISession | |
| +from ckan.plugins import IActions | |
| from ckanext.dgu.middleware import AuthAPIMiddleware |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/ckan/tests/functional/api/model/test_package.py b/ckan/tests/functional/api/model/test_package.py | |
| index eed3e1a..beca564 100644 | |
| --- a/ckan/tests/functional/api/model/test_package.py | |
| +++ b/ckan/tests/functional/api/model/test_package.py | |
| @@ -245,6 +245,18 @@ class PackagesTestCase(BaseModelApiTestCase): | |
| res = self.app.post(offset, params=postparams, status=self.STATUS_400_BAD_REQUEST, | |
| extra_environ=self.extra_environ) | |
| + def test_register_post_bad_request_2(self): | |
| + test_params = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (pyenv-ckan2)dread@dread-laptop:~/gitroot/ckan2$ nosetests --ckan ckan/tests/test_plugins.py:TestPlugins | |
| /home/dread/gitroot/pyenv-ckan2/lib/python2.6/site-packages/pylons/templating.py:610: UserWarning: Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages) | |
| Engine = entry_point.load() | |
| No handlers could be found for logger "vdm" | |
| /home/dread/gitroot/pyenv-ckan2/lib/python2.6/site-packages/formalchemy/forms.py:49: SADeprecationWarning: compile_mappers() is renamed to configure_mappers() | |
| compile_mappers() # initializes InstrumentedAttributes | |
| /home/dread/gitroot/pyenv-ckan2/lib/python2.6/site-packages/sqlalchemy/engine/reflection.py:46: SAWarning: Did not recognize type 'BIGINT' of column 'size' | |
| ret = fn(self, con, *args, **kw) | |
| /home/dread/gitroot/pyenv-ckan2/lib/python2.6/site-packages/sqlalchemy/engine/default.py:453: SAWarning: Unicode type received non-unicode bind param value. | |
| param.append(processors[key](compiled_params[key])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (pyenv-ckan2)dread@dread-laptop:~/gitroot/ckan2$ nosetests --ckan ckan/tests/test_plugins.py:TestPlugins | |
| /home/dread/gitroot/pyenv-ckan2/lib/python2.6/site-packages/pylons/templating.py:610: UserWarning: Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages) | |
| Engine = entry_point.load() | |
| No handlers could be found for logger "vdm" | |
| /home/dread/gitroot/pyenv-ckan2/lib/python2.6/site-packages/formalchemy/forms.py:49: SADeprecationWarning: compile_mappers() is renamed to configure_mappers() | |
| compile_mappers() # initializes InstrumentedAttributes | |
| /home/dread/gitroot/pyenv-ckan2/lib/python2.6/site-packages/sqlalchemy/engine/reflection.py:46: SAWarning: Did not recognize type 'BIGINT' of column 'size' | |
| ret = fn(self, con, *args, **kw) | |
| /home/dread/gitroot/pyenv-ckan2/lib/python2.6/site-packages/sqlalchemy/engine/default.py:453: SAWarning: Unicode type received non-unicode bind param value. | |
| param.append(processors[key](compiled_params[key])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/ckan/tests/functional/test_user.py b/ckan/tests/functional/test_user.py | |
| index 4ae63c0..3afc1f2 100644 | |
| --- a/ckan/tests/functional/test_user.py | |
| +++ b/ckan/tests/functional/test_user.py | |
| @@ -168,12 +168,14 @@ class TestUserController(FunctionalTestCase, HtmlCheckMethods, PylonsTestCase, S | |
| # first get redirected to user/logged_in | |
| assert_equal(res.status, 302) | |
| - assert res.header('Location').startswith('http://localhost/user/logged_in') | |
| + assert res.header('Location').startswith('http://localhost/user/logged_in') or \ |
NewerOlder