From d3d84706a403cbd5798a42935e80c2ccae7ff6ee Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 19 Mar 2014 12:53:11 -0400 Subject: [PATCH] Need to grab just the first item for the scm test project update --- awx/main/tests/projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tests/projects.py b/awx/main/tests/projects.py index ba6f0b8479..5ffd7b8017 100644 --- a/awx/main/tests/projects.py +++ b/awx/main/tests/projects.py @@ -1270,7 +1270,7 @@ class ProjectUpdatesTest(BaseTransactionTest): self.assertTrue(response['can_update']) with self.current_user(self.super_django_user): response = self.post(url, {}, expect=202) - project_update = project.project_updates.order_by('-pk') + project_update = project.project_updates.order_by('-pk')[0] self.check_project_update(project, should_fail=None, project_update=project_update) # Verify that we responded to ssh-agent prompt.