Exemplo 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
Exemplo 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
Exemplo 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 
Exemplo 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
Exemplo 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
Exemplo 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