GeocodeFarm tests: add xfail mark
Their https certificate is currently expired.
This is not the first time this service appears to be offline
for a long period of time, see
-import unittest
-
+import pytest
from mock import patch
from geopy import exc
@@ -8,9 +7,11 @@ from geopy.point import Point
from test.geocoders.util import GeocoderTestBase, env
-@unittest.skipUnless(
- not env.get('GEOCODEFARM_SKIP'),
- "GEOCODEFARM_SKIP env variable is set"
+@pytest.mark.xfail(
+ env.get('GEOCODEFARM_SKIP'),
+ reason=(
+ "geocodefarm service is unstable at times"
+ )
)
class GeocodeFarmTestCase(GeocoderTestBase):
