mirror of
https://github.com/ansible/awx.git
synced 2026-08-02 02:49:58 -02:30
AC-1108 Downgrade django-jenkins to get unit tests passing. Fix activity stream tests to not assume PK is always 1.
This commit is contained in:
@@ -42,7 +42,8 @@ class ActivityStreamTest(BaseTest):
|
||||
self.check_pagination_and_size(response, 1, previous=None, next=None)
|
||||
|
||||
def test_basic_fields(self):
|
||||
org_item = self.item(1)
|
||||
item_id = ActivityStream.objects.order_by('pk')[0].pk
|
||||
org_item = self.item(item_id)
|
||||
|
||||
with self.current_user(self.super_django_user):
|
||||
response = self.get(org_item, expect=200)
|
||||
@@ -54,7 +55,8 @@ class ActivityStreamTest(BaseTest):
|
||||
self.assertTrue(response['summary_fields']['organization'][0]['name'] == self.org_created['name'])
|
||||
|
||||
def test_changeby_user(self):
|
||||
org_item = self.item(1)
|
||||
item_id = ActivityStream.objects.order_by('pk')[0].pk
|
||||
org_item = self.item(item_id)
|
||||
|
||||
with self.current_user(self.super_django_user):
|
||||
response = self.get(org_item, expect=200)
|
||||
|
||||
Reference in New Issue
Block a user