failed to mock interactivechart
This commit is contained in:
@@ -71,7 +71,10 @@ class ViewTest(TestCase):
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
@patch('rowers.dataprep.create_engine')
|
||||
def test_upload_view_sled(self, mocked_sqlalchemy):
|
||||
@patch('rowers.dataprep.getsmallrowdata_db')
|
||||
def test_upload_view_sled(self,
|
||||
mocked_sqlalchemy,
|
||||
mock_for_interactive_chart):
|
||||
login = self.c.login(username='john',password='koeinsloot')
|
||||
self.assertTrue(login)
|
||||
|
||||
@@ -109,6 +112,9 @@ class ViewTest(TestCase):
|
||||
response = self.c.get('/rowers/workout/1/histo/', form_data, follow=True)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
response = self.c.get('/rowers/workout/1/', form_data, follow=True)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
response = self.c.get('/rowers/workout/1/workflow/',
|
||||
follow=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user