fixing auto import for coachees
This commit is contained in:
@@ -13,7 +13,7 @@ from django.db import transaction
|
||||
|
||||
import rowers.teams as teams
|
||||
import rowers.plannedsessions as plannedsessions
|
||||
from rowers.rower_rules import is_coach_user
|
||||
from rowers.rower_rules import is_coach_user, user_is_coachee
|
||||
|
||||
@override_settings(TESTING=True)
|
||||
class PlanningPermissionsCoach(TestCase):
|
||||
@@ -94,6 +94,9 @@ class PlanningPermissionsCoach(TestCase):
|
||||
athletes = plan.rowers.all()
|
||||
self.assertTrue(self.rgroupmember in athletes)
|
||||
|
||||
def test_coachee_can_sync(self):
|
||||
self.assertTrue(user_is_coachee(self.ucoachee))
|
||||
|
||||
|
||||
@override_settings(TESTING=True)
|
||||
class PermissionsFreeCoach(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user