diff --git a/event_routing_backends/tests/test_handlers.py b/event_routing_backends/tests/test_handlers.py index c9f66dc4..f46ba031 100644 --- a/event_routing_backends/tests/test_handlers.py +++ b/event_routing_backends/tests/test_handlers.py @@ -64,6 +64,23 @@ def test_send_tracking_log_to_backends( True, ) + @override_settings( + EVENT_TRACKING_BACKENDS={ + "event_bus": { + "ENGINE": "eventtracking.backends.event_bus.EventBusRoutingBackend", + "OPTIONS": { + "processors": [ + { + "ENGINE": "eventtracking.processors.whitelist.NameWhitelistProcessor", + "OPTIONS": { + "whitelist": ["no_test_name"] + } + } + ], + }, + }, + } + ) @patch("event_routing_backends.handlers.get_tracker") @patch("event_routing_backends.handlers.isinstance") @patch( @@ -95,6 +112,6 @@ def test_send_tracking_log_to_backends_error( assert x is None - # mock_logger.info.assert_called_once_with( - # "[EventEmissionExit] skipping event {}".format("test_name") - # ) + mock_logger.info.assert_called_once_with( + "[EventEmissionExit] skipping event {}".format("test_name") + )