From 8afcce9b5755e23d5b2fb1f6aaecec9275449a5f Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Mon, 8 Dec 2014 17:10:01 +0000 Subject: [PATCH] add more # pragma: no cover lines --- duedil/test_cache.py | 4 ++-- duedil/test_pro.py | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/duedil/test_cache.py b/duedil/test_cache.py index 22ebde3..1e6dabb 100644 --- a/duedil/test_cache.py +++ b/duedil/test_cache.py @@ -33,7 +33,7 @@ class CompanyTestCase(unittest.TestCase): if SANDBOX: company_id = '7c6338188254b24019a69d14e3158de02d2ce35e' - else: + else: # pragma: no cover company_id = '06999618' def test_get_cached(self): @@ -59,7 +59,7 @@ class DirectorTestCase(unittest.TestCase): if SANDBOX: director_id = '1c6e4767b7100e401da7100f1ae1621e2e7d3c49' - else: + else: # pragma: no cover director_id = '914039209' def test_get_cached(self): diff --git a/duedil/test_pro.py b/duedil/test_pro.py index 5ccfcb2..45aebb9 100644 --- a/duedil/test_pro.py +++ b/duedil/test_pro.py @@ -125,7 +125,7 @@ def test_kwargs(self): # XXX self.client.search_director(name='ex', turnover =[0,100]) def test_results(self): - if not SANDBOX: + if not SANDBOX: # pragma: no cover directors, raw = self.client.search_director(name='John') self.assertIsInstance(directors[0], Director) self.assertIsInstance(raw, dict) @@ -135,7 +135,7 @@ class CompanyTestCase(unittest.TestCase): if SANDBOX: company_id = '7c6338188254b24019a69d14e3158de02d2ce35e' - else: + else: # pragma: no cover company_id = '06999618' def test_get(self): @@ -195,7 +195,7 @@ def test_directorships(self): def test_subsidiaries(self): if SANDBOX: company = Company(API_KEY, self.company_id, 'uk', SANDBOX) - else: + else: # pragma: no cover company = Company(API_KEY, '06051516', 'uk', SANDBOX) subsidiaries = company.subsidiaries for subsidiary in subsidiaries: @@ -208,7 +208,7 @@ def test_no_subsidiaries(self): company = Company(API_KEY, '325401bd2f2ea29373c533eb1587e5fcab36f13b', 'uk', SANDBOX) - else: + else: # pragma: no cover company = Company(API_KEY, self.company_id, 'uk', SANDBOX) subsidiaries = company.subsidiaries self.assertEqual(subsidiaries, []) @@ -217,7 +217,7 @@ def test_no_subsidiaries(self): def test_parent(self): if SANDBOX: company = Company(API_KEY, self.company_id, 'uk', SANDBOX) - else: + else: # pragma: no cover company = Company(API_KEY, '03998387', 'uk', SANDBOX) parent = company.parent self.assertIsInstance(parent, Company) @@ -229,7 +229,7 @@ def test_no_parent(self): company = Company(API_KEY, '325401bd2f2ea29373c533eb1587e5fcab36f13b', 'uk', SANDBOX) - else: + else: # pragma: no cover company = Company(API_KEY, self.company_id, 'uk', SANDBOX) parent = company.parent self.assertEqual(parent, None) @@ -240,7 +240,7 @@ class DirectorTestCase(unittest.TestCase): if SANDBOX: director_id = '1c6e4767b7100e401da7100f1ae1621e2e7d3c49' - else: + else: # pragma: no cover director_id = '914039209' def test_get(self):