event_routing_backends.processors.tests.openedx_filters package#

Submodules#

event_routing_backends.processors.tests.openedx_filters.test_filters module#

Test cases for the filters file.

class event_routing_backends.processors.tests.openedx_filters.test_filters.TestProcessorBaseFilter(methodName='runTest')#

Bases: django.test.testcases.TestCase

General test cases for the ProcessorBaseFilter class.

test_expected_value(run_pipeline_mock)#

This checks that the method run_filter returns the value generated by the parent method run_pipeline

Expected behavior:
  • run_pipeline is called with the right key and value

  • run_filter returns the value of the result key

test_invalid_configuration()#

This test that the exception XApiInvalidFilterType is raised when the filter_type attribute has not been set.

Expected behavior:
  • InvalidFilterType exception is raised

Module contents#