From 90bf8966b975b0e7b2621f00facda7463a1966a3 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 1 Oct 2014 15:17:17 -0400 Subject: [PATCH] Refetch the group in an attempt to re-materialize the host additions --- awx/main/tests/inventory.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/tests/inventory.py b/awx/main/tests/inventory.py index 0bc47859c9..bcd599570c 100644 --- a/awx/main/tests/inventory.py +++ b/awx/main/tests/inventory.py @@ -1581,4 +1581,5 @@ class InventoryUpdatesTest(BaseTransactionTest): self.assertTrue(response['can_update']) with self.current_user(self.super_django_user): response = self.post(custom_inv_update, {}, expect=202) + custom_group = Group.objects.get(id=custom_group.id) self.assertEqual(custom_group.hosts.all().count(), 4)