Skip to content

Commit

Permalink
test: correct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Feb 12, 2024
1 parent 6dbd822 commit a617851
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openedx_events/tests/test_producer_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_enabled_disabled_events(self, mock_producer):

@patch("openedx_events.apps.logger")
@patch('openedx_events.apps.get_producer')
def test_events_with_custom_metadata_disabled(self, mock_producer, mock_logger):
def test_send_events_with_custom_metadata_not_replayed_by_handler(self, mock_producer, mock_logger):
"""
Check wheter XBLOCK_PUBLISHED is connected to the handler and the handler
do not send any events as the signal is marked "from_event_bus".
Expand All @@ -73,7 +73,7 @@ def test_events_with_custom_metadata_disabled(self, mock_producer, mock_logger):
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(
mock_logger.debug.assert_called_once_with(
f"Signal already processed on the Event Bus {XBLOCK_PUBLISHED.event_type}, skipping..."
)

Expand Down
Empty file added tests/__init__.py
Empty file.

0 comments on commit a617851

Please sign in to comment.