From 76c819ec10ab83641a387ed34a1949aee5f9c0b2 Mon Sep 17 00:00:00 2001 From: Devin Gaffney Date: Tue, 29 Aug 2023 14:11:03 -0700 Subject: [PATCH] add required field --- test/lib/queue/test_processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/queue/test_processor.py b/test/lib/queue/test_processor.py index b3bb2d1..d1fc534 100644 --- a/test/lib/queue/test_processor.py +++ b/test/lib/queue/test_processor.py @@ -38,7 +38,7 @@ def test_send_callbacks(self): @patch('lib.queue.processor.requests.post') def test_send_callback(self, mock_post): - message_body = schemas.Message(body={"callback_url": "http://example.com", "text": "This is a test"}, response=[1,2,3]) + message_body = schemas.Message(body={"callback_url": "http://example.com", "text": "This is a test", "id": 123}, response=[1,2,3]) self.queue_processor.send_callback(message_body) mock_post.assert_called_once_with("http://example.com", json=message_body) @@ -46,7 +46,7 @@ def test_send_callback(self, mock_post): @patch('lib.queue.processor.requests.post') def test_send_callback_failure(self, mock_post): mock_post.side_effect = Exception("Request Failed!") - message_body = schemas.Message(body={"callback_url": "http://example.com", "text": "This is a test"}, response=[1,2,3]) + message_body = schemas.Message(body={"callback_url": "http://example.com", "text": "This is a test", "id": 123}, response=[1,2,3]) with self.assertLogs(level='ERROR') as cm: self.queue_processor.send_callback(message_body)