Skip to content

Commit

Permalink
chore: quality fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Feb 9, 2024
1 parent fa3c9b3 commit fb9d6fe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions openedx_events/tests/test_producer_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ def test_events_with_custom_metadata_disabled(self, mock_producer, mock_logger):
mock_producer.return_value = mock_send
metadata = XBLOCK_PUBLISHED.generate_signal_metadata()

XBLOCK_PUBLISHED.send_event_with_custom_metadata(metadata ,xblock_info=self.xblock_info)
XBLOCK_PUBLISHED.send_event_with_custom_metadata(metadata, xblock_info=self.xblock_info)

mock_send.send.assert_not_called()
mock_logger.info.assert_called_once_with(f"Signal already processed on the Event Bus {XBLOCK_PUBLISHED.event_type}, skipping...")

mock_logger.info.assert_called_once_with(
f"Signal already processed on the Event Bus {XBLOCK_PUBLISHED.event_type}, skipping..."
)

@patch('openedx_events.apps.get_producer')
@override_settings(EVENT_BUS_PRODUCER_CONFIG={})
Expand Down

0 comments on commit fb9d6fe

Please sign in to comment.