Skip to content

Commit

Permalink
chore: fix tests for 3.11 and 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
salman2013 committed Feb 19, 2024
1 parent 65fc28a commit ff7c34c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions edx_event_bus_redis/internal/tests/test_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from datetime import datetime, timezone
from uuid import UUID

import re
import ddt
import pytest
from django.test import TestCase
Expand Down Expand Up @@ -77,10 +77,10 @@ def test_no_event_data(self):
)
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'",
expected_error_pattern = re.compile(
r"Error determining metadata from message headers: .*__init__\(\) missing 1 required positional argument: 'event_type'"
)
assert expected_error_pattern.search(str(excinfo.value)) is not None

def test_bad_msg(self):
"""
Expand Down

0 comments on commit ff7c34c

Please sign in to comment.