Private
Public Access
1
0

mocking request to weather API

This commit is contained in:
Sander Roosendaal
2020-02-08 09:03:34 +01:00
parent 3c7a89f822
commit 6bdf9216f2
11 changed files with 238 additions and 12743 deletions

View File

@@ -242,9 +242,9 @@ class WorkoutViewTest(TestCase):
@patch('rowers.dataprep.create_engine')
@patch('rowers.dataprep.getsmallrowdata_db')
# @patch('rowers.weather.requests.get', side_effect=mocked_requests)
@patch('rowers.weather.requests.get', side_effect=mocked_requests)
def test_waterworkout_view(self,
mocked_sqlalchemy, mocked_getsmallrowdata_db):
mocked_sqlalchemy, mocked_getsmallrowdata_db, mocked_requests):
login = self.c.login(username=self.u.username, password=self.password)
self.assertTrue(login)