making pass tests
This commit is contained in:
@@ -1112,21 +1112,22 @@ class PermissionsViewTests(TestCase):
|
||||
## Pro cannot run analytics on behalf of athlete
|
||||
@patch('rowers.dataprep.read_cols_df_sql', side_effect = mocked_read_df_cols_sql_multistats)
|
||||
def test_pro_edit_athlete_analysis(self,mocked_df):
|
||||
self.rpro.team.add(self.teampro)
|
||||
with transaction.atomic():
|
||||
self.rpro.team.add(self.teampro)
|
||||
|
||||
login = self.c.login(username=self.upro2.username, password=self.upro2password)
|
||||
self.assertTrue(login)
|
||||
login = self.c.login(username=self.upro2.username, password=self.upro2password)
|
||||
self.assertTrue(login)
|
||||
|
||||
|
||||
url = reverse('cumstats',
|
||||
kwargs={
|
||||
'theuser':self.ubasic.id,
|
||||
}
|
||||
)
|
||||
url = reverse('cumstats',
|
||||
kwargs={
|
||||
'theuser':self.ubasic.id,
|
||||
}
|
||||
)
|
||||
|
||||
response = self.c.get(url)
|
||||
response = self.c.get(url)
|
||||
|
||||
self.assertEqual(response.status_code,403)
|
||||
self.assertEqual(response.status_code,403)
|
||||
|
||||
## Self Coach cannot upload on behalf of athlete
|
||||
@patch('rowers.dataprep.create_engine')
|
||||
|
||||
Reference in New Issue
Block a user