Exemple #1
0
 def test_jt_friend_cancel(self, deploy_jobtemplate, admin_user, jt_user):
     job = Job(job_template=deploy_jobtemplate, created_by=admin_user)
     access = JobAccess(jt_user)
     assert not access.can_cancel(job)
Exemple #2
0
 def test_jt_org_admin_cancel(self, deploy_jobtemplate, org_admin, jt_user):
     job = Job(job_template=deploy_jobtemplate, created_by=jt_user)
     access = JobAccess(org_admin)
     assert access.can_cancel(job)
Exemple #3
0
 def test_jt_self_cancel(self, deploy_jobtemplate, jt_user):
     job = Job(job_template=deploy_jobtemplate, created_by=jt_user)
     access = JobAccess(jt_user)
     assert access.can_cancel(job)