tests creating editing and deleting courses
This commit is contained in:
@@ -77,7 +77,8 @@ class AsyncTaskTests(TestCase):
|
||||
|
||||
@patch('rowers.tasks.requests.get',side_effect=mocked_requests)
|
||||
@patch('rowers.tasks.requests.post',side_effect=mocked_requests)
|
||||
def test_fetch_strava_workout(self, mock_get, mock_post):
|
||||
@patch('rowers.tasks.requests.session',side_effect=mocked_requests)
|
||||
def test_fetch_strava_workout(self, mock_get, mock_post, mock_Session):
|
||||
res = tasks.fetch_strava_workout('aap',None,12,'rowers/tests/testdata/temp/tesmp.csv',
|
||||
self.u.id)
|
||||
self.assertEqual(res,1)
|
||||
|
||||
Reference in New Issue
Block a user