From 9f40e7ef70bf95729939dae5daff0a9fb1659c51 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Mon, 14 Nov 2016 16:29:20 -0500 Subject: [PATCH] fix notification unit test mock --- awx/main/tests/unit/test_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tests/unit/test_tasks.py b/awx/main/tests/unit/test_tasks.py index 881b7b15c6..ff2faf63a4 100644 --- a/awx/main/tests/unit/test_tasks.py +++ b/awx/main/tests/unit/test_tasks.py @@ -34,7 +34,7 @@ def test_send_notifications_list(mocker): mock_job = mocker.MagicMock(spec=UnifiedJob) patches.append(mocker.patch('awx.main.models.UnifiedJob.objects.get', return_value=mock_job)) - mock_notification = mocker.MagicMock(spec=Notification, subject="test") + mock_notification = mocker.MagicMock(spec=Notification, subject="test", body={ 'hello': 'world' }) patches.append(mocker.patch('awx.main.models.Notification.objects.get', return_value=mock_notification)) with apply_patches(patches):