block user from shooting themselves in the foot by scheduling a manual project

This commit is contained in:
AlanCoding
2016-10-10 11:40:36 -04:00
parent 48c155dfb0
commit 42cf74b085
4 changed files with 18 additions and 5 deletions
@@ -320,6 +320,7 @@ def test_prefetch_jt_copy_capability(job_template, project, inventory, machine_c
def test_manual_projects_no_update(project, get, admin_user):
response = get(reverse('api:project_detail', args=[project.pk]), admin_user, expect=200)
assert not response.data['summary_fields']['user_capabilities']['start']
assert not response.data['summary_fields']['user_capabilities']['schedule']
@pytest.mark.django_db