Skip to content

Commit

Permalink
[#2581] test that package_show can be lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Sep 3, 2015
1 parent b160cae commit 54e05de
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ckan/tests/logic/action/test_get.py
Expand Up @@ -35,6 +35,15 @@ def foo(key, data, errors, context):

eq(dataset2['new_field'], 'foo')

def test_package_show_is_lazy(self):
dataset1 = factories.Dataset()

dataset2 = helpers.call_action('package_show', id=dataset1['id'],
context=dict(return_type='LazyJSONObject'))

# LazyJSONObject passed through without being expanded
assert dataset2._json_dict is None


class TestGroupList(helpers.FunctionalTestBase):

Expand Down

0 comments on commit 54e05de

Please sign in to comment.