Merge pull request #513 from CartoDB/development
Disable Mapbox Matrix API
This commit is contained in:
@@ -173,7 +173,8 @@ class TestGeocoderOrgConfig(TestCase):
|
|||||||
|
|
||||||
|
|
||||||
class TestIsolinesUserConfig(TestCase):
|
class TestIsolinesUserConfig(TestCase):
|
||||||
ISOLINES_PROVIDERS = ['heremaps', 'mapzen', 'mapbox', 'tomtom']
|
# Don't test mapbox. See CartoDB/cartodb-management/issues/5199"
|
||||||
|
ISOLINES_PROVIDERS = ['heremaps', 'mapzen', 'tomtom']
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.redis_conn = MockRedis()
|
self.redis_conn = MockRedis()
|
||||||
@@ -233,8 +234,8 @@ class TestIsolinesUserConfig(TestCase):
|
|||||||
|
|
||||||
|
|
||||||
class TestIsolinesOrgConfig(TestCase):
|
class TestIsolinesOrgConfig(TestCase):
|
||||||
|
# Don't test mapbox. See CartoDB/cartodb-management/issues/5199"
|
||||||
ISOLINES_PROVIDERS = ['heremaps', 'mapzen', 'mapbox', 'tomtom']
|
ISOLINES_PROVIDERS = ['heremaps', 'mapzen', 'tomtom']
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.redis_conn = MockRedis()
|
self.redis_conn = MockRedis()
|
||||||
|
|||||||
@@ -3,15 +3,13 @@ from mock import Mock
|
|||||||
from cartodb_services.mapbox.isolines import MapboxIsolines
|
from cartodb_services.mapbox.isolines import MapboxIsolines
|
||||||
from cartodb_services.mapbox.matrix_client import DEFAULT_PROFILE
|
from cartodb_services.mapbox.matrix_client import DEFAULT_PROFILE
|
||||||
from cartodb_services.mapbox.matrix_client import MapboxMatrixClient
|
from cartodb_services.mapbox.matrix_client import MapboxMatrixClient
|
||||||
from cartodb_services.mapbox.routing import MapboxRouting
|
|
||||||
from cartodb_services.tools import Coordinate
|
from cartodb_services.tools import Coordinate
|
||||||
from cartodb_services.tools.coordinates import (validate_coordinates,
|
|
||||||
marshall_coordinates)
|
|
||||||
from credentials import mapbox_api_key
|
from credentials import mapbox_api_key
|
||||||
|
|
||||||
VALID_ORIGIN = Coordinate(-73.989, 40.733)
|
VALID_ORIGIN = Coordinate(-73.989, 40.733)
|
||||||
|
|
||||||
|
|
||||||
|
@unittest.skip("Stop using Matrix API. CartoDB/cartodb-management/issues/5199")
|
||||||
class MapboxIsolinesTestCase(unittest.TestCase):
|
class MapboxIsolinesTestCase(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ VALID_PROFILE = DEFAULT_PROFILE
|
|||||||
INVALID_PROFILE = 'invalid_profile'
|
INVALID_PROFILE = 'invalid_profile'
|
||||||
|
|
||||||
|
|
||||||
|
@unittest.skip("Stop using Matrix API. CartoDB/cartodb-management/issues/5199")
|
||||||
class MapboxMatrixTestCase(unittest.TestCase):
|
class MapboxMatrixTestCase(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.matrix_client = MapboxMatrixClient(token=mapbox_api_key(),
|
self.matrix_client = MapboxMatrixClient(token=mapbox_api_key(),
|
||||||
|
|||||||
@@ -17,16 +17,17 @@ VALID_PROFILE = DEFAULT_PROFILE
|
|||||||
INVALID_PROFILE = 'invalid_profile'
|
INVALID_PROFILE = 'invalid_profile'
|
||||||
|
|
||||||
WELL_KNOWN_SHAPE = [(40.73312, -73.98891), (40.73353, -73.98987),
|
WELL_KNOWN_SHAPE = [(40.73312, -73.98891), (40.73353, -73.98987),
|
||||||
(40.73398, -73.99095), (40.73321, -73.99111),
|
(40.73398, -73.99095), (40.73453, -73.99227),
|
||||||
(40.73245, -73.99129), (40.7333, -73.99332),
|
(40.73531, -73.99412), (40.73467, -73.99459),
|
||||||
(40.7338, -73.99449), (40.73403, -73.99505),
|
(40.73442, -73.99477), (40.73435, -73.99482),
|
||||||
(40.73344, -73.99549), (40.73286, -73.9959),
|
(40.73403, -73.99505), (40.73344, -73.99549),
|
||||||
(40.73226, -73.99635), (40.73186, -73.99664),
|
(40.73286, -73.9959), (40.73226, -73.99635),
|
||||||
(40.73147, -73.99693), (40.73141, -73.99698),
|
(40.73186, -73.99664), (40.73147, -73.99693),
|
||||||
(40.73147, -73.99707), (40.73219, -73.99856),
|
(40.73141, -73.99698), (40.73147, -73.99707),
|
||||||
(40.73222, -73.99861), (40.73225, -73.99868),
|
(40.73219, -73.99856), (40.73222, -73.99861),
|
||||||
(40.73293, -74.00007), (40.733, -74.00001)]
|
(40.73225, -73.99868), (40.73293, -74.00007),
|
||||||
WELL_KNOWN_LENGTH = 1384.8
|
(40.733, -74.00001)]
|
||||||
|
WELL_KNOWN_LENGTH = 1317.9
|
||||||
|
|
||||||
|
|
||||||
class MapboxRoutingTestCase(unittest.TestCase):
|
class MapboxRoutingTestCase(unittest.TestCase):
|
||||||
|
|||||||
Reference in New Issue
Block a user