1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Refetch the group in an attempt to re-materialize the host additions

This commit is contained in:
Matthew Jones 2014-10-01 15:17:17 -04:00
parent 25f8034b79
commit 90bf8966b9

View File

@ -1581,4 +1581,5 @@ class InventoryUpdatesTest(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(custom_inv_update, {}, expect=202) 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) self.assertEqual(custom_group.hosts.all().count(), 4)