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
def test_references_referencedata(self): reindex_search() response = self.client.get(url_for('meta_api2.reference_data')) assert '200' in response.status
def test_countries_countrieslist(self): reindex_search() response = self.client.get(url_for('countries_api2.countries_list')) assert '200' in response.status
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