passing test_imports
This commit is contained in:
@@ -1366,7 +1366,7 @@ def mocked_requests(*args, **kwargs):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if stravatester.match(args[0]):
|
||||
if stravaworkoutlisttester.match(args[0]):
|
||||
return MockResponse(stravaworkoutlist,200)
|
||||
|
||||
@@ -1165,7 +1165,8 @@ class StravaObjects(DjangoTestCase):
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
@patch('rowers.integrations.integrations.requests.post', side_effect=mocked_requests)
|
||||
def test_strava_callback(self, mock_post):
|
||||
@patch('rowers.integrations.strava.requests.get', side_effect=mocked_requests)
|
||||
def test_strava_callback(self, mock_post, mock_get):
|
||||
response = self.c.get('/stravacall_back?code=absdef23&scope=read',follow=True)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user