Exemplo n.º 1
0
 def test_it_returns_false_when_geocoding_search_fails(self):
     assert CheckGeocoding().run_check() is False
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 def test_it_is_disabled_when_geocoding_is_disabled(self):
     assert CheckGeocoding().is_enabled is False