Skip to content

Commit

Permalink
Fixing up tests after merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones committed Jan 20, 2012
1 parent 6e01ee5 commit cbf2243
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/dictization/model_dictize.py
Expand Up @@ -192,7 +192,7 @@ def package_dictize(pkg, context):
result_dict['isopen'] = pkg.isopen if isinstance(pkg.isopen,bool) else pkg.isopen()

# type
result_dict['type']= pkg_object.type
result_dict['type']= pkg.type

# creation and modification date
result_dict['metadata_modified'] = pkg.metadata_modified.isoformat() \
Expand Down
1 change: 1 addition & 0 deletions ckan/tests/lib/test_dictization_schema.py
Expand Up @@ -141,6 +141,7 @@ def test_2_group_schema(self):
expected = {'description': u'These are books that David likes.',
'id': group.id,
'name': u'david',
'type': u'group',
'packages': sorted([{'id': group_pack[0].id},
{'id': group_pack[1].id,
}], key=lambda x:x["id"]),
Expand Down

0 comments on commit cbf2243

Please sign in to comment.