[ckan-changes] commit/ckan: kindly: [model] final dictization fix
Bitbucket
commits-noreply at bitbucket.org
Tue Sep 13 11:02:14 UTC 2011
1 new changeset in ckan:
http://bitbucket.org/okfn/ckan/changeset/9c63e4d8e9e2/
changeset: 9c63e4d8e9e2
branch: feature-1324-add-fields-to-resource
user: kindly
date: 2011-09-13 12:59:25
summary: [model] final dictization fix
affected #: 1 file (43 bytes)
--- a/ckan/tests/lib/test_dictization.py Tue Sep 13 11:38:45 2011 +0100
+++ b/ckan/tests/lib/test_dictization.py Tue Sep 13 11:59:25 2011 +0100
@@ -703,7 +703,7 @@
'hash': u'abc123',
'description': u'Full text. Needs escaping: " Umlaut: \xfc',
'format': u'plain text',
- 'url': u'test',
+ 'url': u'test_new',
'cache_url': None,
'webstore_url': None,
'cache_last_updated': None,
@@ -712,7 +712,8 @@
'webstore_last_updated': None,
'last_modified': None,
'position': 0,
- 'size': 123,
+ 'size': None,
+ 'size_extra': u'123',
'resource_type': None,
'name': None}
@@ -721,7 +722,7 @@
model.Session.commit()
model.Session.remove()
- res = model.Session.query(model.Resource).filter_by(url=u'test').one()
+ res = model.Session.query(model.Resource).filter_by(url=u'test_new').one()
res_dictized = self.remove_changable_columns(resource_dictize(res, context))
Repository URL: https://bitbucket.org/okfn/ckan/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the ckan-changes
mailing list