Skip to content

Commit

Permalink
Increase coverage to pass CI
Browse files Browse the repository at this point in the history
  • Loading branch information
akscram committed Dec 27, 2016
1 parent 40dfd54 commit 619da42
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/unit/api/v1/test_regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@
class ApiTestCase(test.TestCase):

def test_api_response_code(self):
self.mock_config({
"use_fake_api_data": False,
})
self.mock_config({"use_fake_api_data": False})
code, resp = self.get("/api/v1/regions")
self.assertEqual(code, 200)
code, resp = self.get("/api/v1/regions/detailed")
self.assertEqual(code, 200)

def test_fake_api_response(self):
self.mock_config({"use_fake_api_data": True})
code, resp = self.get("/api/v1/regions")
self.assertEqual(code, 200)
code, resp = self.get("/api/v1/regions/detailed")
Expand Down

0 comments on commit 619da42

Please sign in to comment.