From c6c3182063112e6cb6465ddb036152204547f6ed Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Fri, 9 Feb 2024 14:56:12 -0500 Subject: [PATCH] test: update test with from_event_bus --- openedx_events/tests/test_tooling.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openedx_events/tests/test_tooling.py b/openedx_events/tests/test_tooling.py index f3aa01d5..da480d3d 100644 --- a/openedx_events/tests/test_tooling.py +++ b/openedx_events/tests/test_tooling.py @@ -179,6 +179,7 @@ def test_send_event_allow_failure_successfully(self, send_mock, fake_metadata): sender=None, user=self.user_mock, metadata=expected_metadata, + from_event_bus=False, ) @patch("openedx_events.tooling.OpenEdxPublicSignal.generate_signal_metadata") @@ -198,7 +199,8 @@ def test_send_robust_event_successfully(self, format_responses_mock, log_mock, f self.public_signal.send_event(user=self.user_mock) self.ok_receiver.assert_called_once_with( - signal=self.public_signal, sender=None, user=self.user_mock, metadata=expected_metadata + signal=self.public_signal, sender=None, user=self.user_mock, metadata=expected_metadata, + from_event_bus=False ) # format_responses is mocked out because its output is # complicated enough to warrant its own set of tests. @@ -253,7 +255,7 @@ def test_send_event_with_custom_metadata(self, mock_send_event_with_metadata): assert response == expected_response mock_send_event_with_metadata.assert_called_once_with( - metadata=metadata, send_robust=True, foo="bar", + metadata=metadata, send_robust=True, foo="bar", from_event_bus=True ) @ddt.data(