def test_authenticated_user_can_create_taskrun_for_draft_project(self):
"""Test authenticated users can create a taskrun for a project that
is a draft"""
project = ProjectFactory.create(published=False)
task = TaskFactory.create(project=project)
taskrun = TaskRunFactory.build(task_id=task.id, project_id=project.id)
assert_not_raises(Forbidden, ensure_authorized_to, 'create', taskrun)
test_taskrun_auth.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录