Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix name of class of FlaskRoutesTest for v1 and v2 testing
  • Loading branch information
gribok committed Mar 18, 2020
commit 81a603629f0e81542f5af7b4e42bb5ab975b5e35
4 changes: 2 additions & 2 deletions tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

@mock.patch('app.services.location.jhu.datetime')
@mock.patch('app.services.location.jhu.requests.get', side_effect=mocked_requests_get)
class FlaskRoutesV1Test(unittest.TestCase):
class FlaskRoutesTest(unittest.TestCase):
"""
Need to mock some objects to control testing data locally
Routes are hard to test regarding singleton app.
Expand All @@ -21,7 +21,7 @@ class FlaskRoutesV1Test(unittest.TestCase):
app = app.create_app()

def setUp(self):
self.client = FlaskRoutesV1Test.app.test_client()
self.client = FlaskRoutesTest.app.test_client()
self.date = DATETIME_STRING

def read_file_v1(self, state):
Expand Down