From 8746df7b3106b912ef9252b325d554b4f87c0cc6 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Tue, 25 Jul 2017 15:41:01 -0400 Subject: [PATCH] update SCM test to mock inventory update --- awx/main/tests/functional/models/test_inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tests/functional/models/test_inventory.py b/awx/main/tests/functional/models/test_inventory.py index 4c16a83c6f..8a43e66ff9 100644 --- a/awx/main/tests/functional/models/test_inventory.py +++ b/awx/main/tests/functional/models/test_inventory.py @@ -20,7 +20,7 @@ class TestSCMUpdateFeatures: inventory=inventory, update_on_project_update=True, source='scm') - with mock.patch.object(inv_src.source_project, 'update') as mck_update: + with mock.patch.object(inv_src, 'update') as mck_update: inv_src.save() mck_update.assert_called_once_with()