From 65fc28ad8ed436484bc49f0fda924d9b0331284e Mon Sep 17 00:00:00 2001 From: salman2013 Date: Mon, 19 Feb 2024 19:21:34 +0500 Subject: [PATCH] chore: fix test case --- edx_event_bus_redis/internal/tests/test_message.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/edx_event_bus_redis/internal/tests/test_message.py b/edx_event_bus_redis/internal/tests/test_message.py index abe21d2..35a9b0d 100644 --- a/edx_event_bus_redis/internal/tests/test_message.py +++ b/edx_event_bus_redis/internal/tests/test_message.py @@ -68,13 +68,18 @@ def test_no_type(self): ) def test_no_event_data(self): - msg = (b'1', {b'id': b'629f9892-c258-11ed-8dac-1c83413013cb', b'event_data': self.event_data_bytes}) + msg = ( + b'1', + { + b'id': b'629f9892-c258-11ed-8dac-1c83413013cb', + b'event_data': self.event_data_bytes, + } + ) with pytest.raises(UnusableMessageError) as excinfo: RedisMessage.parse(msg, topic='some-local-topic') - + #import pdb; pdb.set_trace() assert excinfo.value.args == ( - "Error determining metadata from message headers: " - "EventsMetadata.__init__() missing 1 required positional argument: 'event_type'", + "Error determining metadata from message headers: EventsMetadata.__init__() missing 1 required positional argument: 'event_type'", ) def test_bad_msg(self):