Skip to content

Commit

Permalink
test the case for resource_show action on resource with empty url
Browse files Browse the repository at this point in the history
  • Loading branch information
yingqiaogit authored and wardi committed May 15, 2016
1 parent e03da49 commit 55add09
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ckan/tests/logic/action/test_create.py
Expand Up @@ -410,7 +410,14 @@ def test_doesnt_require_url(self):
'package_id': dataset['id']
}

helpers.call_action('resource_create', **data_dict)
new_resouce = helpers.call_action('resource_create', **data_dict)

data_dict={
'id':new_resouce['id']
}
stored_resource = helpers.call_action('resource_show', **data_dict)

assert not stored_resource['url']


class TestMemberCreate(object):
Expand Down

0 comments on commit 55add09

Please sign in to comment.