Esempio n. 1
0
 def test_search_full(self):
     reindex_search()
     response = self.client.get(url_for('search_api2.search_api', q='afghan'))
     assert '200' in response.status
     assert 'afghanistan' in response.data
Esempio n. 2
0
 def test_references_referencedata(self):
     reindex_search()
     response = self.client.get(url_for('meta_api2.reference_data'))
     assert '200' in response.status
Esempio n. 3
0
 def test_countries_countrieslist(self):
     reindex_search()
     response = self.client.get(url_for('countries_api2.countries_list'))
     assert '200' in response.status 
Esempio n. 4
0
 def test_search_full(self):
     reindex_search()
     response = self.client.get(
         url_for('search_api2.search_api', q='afghan'))
     assert '200' in response.status
     assert 'afghanistan' in response.data
Esempio n. 5
0
 def test_references_referencedata(self):
     reindex_search()
     response = self.client.get(url_for('meta_api2.reference_data'))
     assert '200' in response.status
Esempio n. 6
0
 def test_countries_countrieslist(self):
     reindex_search()
     response = self.client.get(url_for('countries_api2.countries_list'))
     assert '200' in response.status