From 47962c9ccbbfe588570e62d70cf120b9f98fc4df Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Mon, 13 Jun 2016 11:33:11 +0200 Subject: [PATCH] Stub tests to be implemented (WIP) #201 --- .../cartodb_services/test/test_user_service.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/server/lib/python/cartodb_services/test/test_user_service.py b/server/lib/python/cartodb_services/test/test_user_service.py index b173d31..00572bf 100644 --- a/server/lib/python/cartodb_services/test/test_user_service.py +++ b/server/lib/python/cartodb_services/test/test_user_service.py @@ -7,6 +7,7 @@ from unittest import TestCase from mock import Mock from nose.tools import assert_raises from datetime import timedelta +import nose #TODO remove class TestUserService(TestCase): @@ -75,6 +76,19 @@ class TestUserService(TestCase): us.increment_service_use(self.NOKIA_GEOCODER, 'fail_responses') assert us.used_quota(self.NOKIA_GEOCODER, date.today()) == 2 + def test_should_account_for_zero_paddded_keys(self): + raise nose.SkipTest('not implemented yet') + + def test_should_account_for_wrongly_stored_non_padded_keys(self): + raise nose.SkipTest('not implemented yet') + + def test_should_sum_amounts_from_both_key_formats(self): + raise nose.SkipTest('not implemented yet') + + def test_should_not_request_redis_twice_when_unneeded(self): + raise nose.SkipTest('not implemented yet') + + def __build_user_service(self, username, quota=100, service='heremaps', orgname=None, soft_limit=False, end_date=datetime.today()):