From 3ed41b065a6f5dff105d2e20cc93e9300548675b Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Fri, 6 Oct 2017 15:27:51 +0200 Subject: [PATCH] Marginally improve tests for #382 --- .../cartodb_services/test/test_google_client_factory.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/lib/python/cartodb_services/test/test_google_client_factory.py b/server/lib/python/cartodb_services/test/test_google_client_factory.py index f245925..f09da5a 100644 --- a/server/lib/python/cartodb_services/test/test_google_client_factory.py +++ b/server/lib/python/cartodb_services/test/test_google_client_factory.py @@ -1,6 +1,7 @@ #!/usr/local/bin/python # -*- coding: utf-8 -*- +import googlemaps import unittest import base64 @@ -52,7 +53,9 @@ class GoogleMapsClientFactoryTestCase(unittest.TestCase): GoogleMapsClientFactory.get('dummy_client_id', 'lalala') def test_credentials_with_dashes_can_be_valid(self): - GoogleMapsClientFactory.get('yet_another_dummy_client_id', 'Ola-k-ase---') + client = GoogleMapsClientFactory.get('yet_another_dummy_client_id', 'Ola-k-ase---') + self.assertIsInstance(client, googlemaps.Client) def test_credentials_with_underscores_can_be_valid(self): - GoogleMapsClientFactory.get('yet_another_dummy_client_id', 'Ola_k_ase___') + client = GoogleMapsClientFactory.get('yet_another_dummy_client_id', 'Ola_k_ase___') + self.assertIsInstance(client, googlemaps.Client)