Skip to content

Commit

Permalink
test for metadata table
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Sep 11, 2012
1 parent 4eb4222 commit deacefc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ckanext/datastore/tests/test_datastore.py
Expand Up @@ -1316,6 +1316,15 @@ def test_search_full_text(self):
for field in expected_fields:
assert field in result['fields'], field

def test_search_table_metadata(self):
data = {'resource_id': "_table_metadata"}
postparams = '%s=1' % json.dumps(data)
auth = {'Authorization': str(self.sysadmin_user.apikey)}
res = self.app.post('/api/action/datastore_search', params=postparams,
extra_environ=auth)
res_dict = json.loads(res.body)
assert res_dict['success'] is True


class TestDatastoreFullTextSearch(tests.WsgiAppCase):
@classmethod
Expand Down

0 comments on commit deacefc

Please sign in to comment.