Skip to content

Commit

Permalink
[#267] Add small test
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Mar 12, 2013
1 parent b928adc commit f962b6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/tests/lib/test_solr_search_index.py
Expand Up @@ -65,6 +65,10 @@ def test_index(self):
'owner_org': None,
'metadata_created': datetime_now.isoformat(),
'metadata_modified': datetime_now.isoformat(),
'extras': [
{'key': 'test_date', 'value': '2013-03-01'},
{'key': 'test_wrong_date', 'value': 'Not a date'},
]
}
search.dispatch_by_operation('Package', pkg_dict, 'new')
response = self.solr.query('title:penguin', fq=self.fq)
Expand Down

0 comments on commit f962b6f

Please sign in to comment.