Private
Public Access
1
0

added inventory from test_permissions

This commit is contained in:
Sander Roosendaal
2020-01-15 10:17:46 +01:00
parent 7aa03b71ed
commit a6746030e9
7 changed files with 170 additions and 57 deletions

View File

@@ -694,7 +694,7 @@ class PermissionsViewTests(TestCase):
self.assertEqual(response.status_code,403)
# 3, Export Settings
def test_coach_edit_athlete_settings(self):
def test_coach_edit_athlete_exportsettings(self):
self.rbasic.team.add(self.teamcoach)
self.rbasic.coachinggroups.add(self.coachinggroup)
@@ -706,7 +706,7 @@ class PermissionsViewTests(TestCase):
response = self.c.get(url)
self.assertEqual(response.status_code,200)
def test_coach_edit_athlete_settings_not(self):
def test_coach_edit_athlete_exportsettings_not(self):
self.rbasic.team.add(self.teamcoach)
login = self.c.login(username=self.ucoach.username, password=self.ucoachpassword)
@@ -718,7 +718,7 @@ class PermissionsViewTests(TestCase):
self.assertEqual(response.status_code,403)
# 4, Account settings
def test_coach_edit_athlete_settings(self):
def test_coach_edit_athlete_account(self):
self.rbasic.team.add(self.teamcoach)
self.rbasic.coachinggroups.add(self.coachinggroup)
@@ -730,7 +730,7 @@ class PermissionsViewTests(TestCase):
response = self.c.get(url)
self.assertEqual(response.status_code,200)
def test_coach_edit_athlete_settings_not(self):
def test_coach_edit_athlete_account_not(self):
self.rbasic.team.add(self.teamcoach)
login = self.c.login(username=self.ucoach.username, password=self.ucoachpassword)