Commit ab42e9b7 authored by HERBERT Ryan's avatar HERBERT Ryan

Resolved issue with admin crossbleed test

parent 5a7dcc3d
......@@ -455,8 +455,8 @@ class VidjilauthModel(unittest.TestCase):
res = auth.can_view_patient(patient_id, user_id_sec)
self.assertTrue(res, "User %d is missing read permissions on patient %d" % (user_id_sec, patient_id))
res = auth.can_modify_patient(patient_id, auth.user_id)
self.assertFalse(res, "User %d should not have admin permissions on patient %d" % (auth.user_id, patient_id))
res = auth.can_modify_patient(patient_id_sec, auth.user_id)
self.assertFalse(res, "User %d should not have admin permissions on patient %d" % (auth.user_id, patient_id_sec))
def testGetPermissionCache(self):
res = auth.can_modify_patient(patient_id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment