def test_it_returns_false_when_geocoding_search_fails(self): assert CheckGeocoding().run_check() is False
def test_it_works(self, requests_mock): requests_mock.get(settings.GEOCODING_SEARCH_URL, json=test_geocoding.EXAMPLE_SEARCH) check = CheckGeocoding() assert check.is_enabled is True assert check.run_check() is True
def test_it_is_disabled_when_geocoding_is_disabled(self): assert CheckGeocoding().is_enabled is False