diff --git a/awx/main/tests/functional/test_projects.py b/awx/main/tests/functional/test_projects.py index 6d66c4e346..8d93fcf6d9 100644 --- a/awx/main/tests/functional/test_projects.py +++ b/awx/main/tests/functional/test_projects.py @@ -137,6 +137,7 @@ def test_patch_project_null_organization(patch, organization, project, admin): def test_patch_project_null_organization_xfail(patch, project, org_admin): patch(reverse('api:project_detail', args=(project.id,)), { 'name': 't', 'organization': None}, org_admin, expect=400) + @pytest.mark.django_db def test_cannot_schedule_manual_project(project, admin_user, post): response = post( diff --git a/awx/main/tests/old/projects.py b/awx/main/tests/old/projects.py index 3b894e18cc..10510c5e24 100644 --- a/awx/main/tests/old/projects.py +++ b/awx/main/tests/old/projects.py @@ -233,7 +233,8 @@ class ProjectsTest(BaseTransactionTest): 'name': 'My Test Project', 'description': 'Does amazing things', 'local_path': os.path.basename(project_dir), - 'scm_type': None, + 'scm_type': 'git', # must not be manual in order to schedule + 'scm_url': 'http://192.168.100.128.git', 'scm_update_on_launch': '', 'scm_delete_on_update': None, 'scm_clean': False, @@ -244,7 +245,7 @@ class ProjectsTest(BaseTransactionTest): # or an empty string for False, but save the value as a boolean. response = self.post(projects, project_data, expect=201, auth=self.get_super_credentials()) - self.assertEqual(response['scm_type'], u'') + self.assertEqual(response['scm_type'], u'git') self.assertEqual(response['scm_update_on_launch'], False) self.assertEqual(response['scm_delete_on_update'], False) self.assertEqual(response['scm_clean'], False)