1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Need to grab just the first item for the scm test project update

This commit is contained in:
Matthew Jones 2014-03-19 12:53:11 -04:00
parent e24538865f
commit d3d84706a4

View File

@ -1270,7 +1270,7 @@ class ProjectUpdatesTest(BaseTransactionTest):
self.assertTrue(response['can_update']) self.assertTrue(response['can_update'])
with self.current_user(self.super_django_user): with self.current_user(self.super_django_user):
response = self.post(url, {}, expect=202) 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, self.check_project_update(project, should_fail=None,
project_update=project_update) project_update=project_update)
# Verify that we responded to ssh-agent prompt. # Verify that we responded to ssh-agent prompt.