edx_django_utils.tests package#
Submodules#
edx_django_utils.tests.test_pluggable_override module#
Tests for utilities.
- edx_django_utils.tests.test_pluggable_override.decrement(prev_fn, x)#
- edx_django_utils.tests.test_pluggable_override.double(prev_fn, x)#
- edx_django_utils.tests.test_pluggable_override.test_call_original_function()#
Test that the overriding function calls the base one.
- edx_django_utils.tests.test_pluggable_override.test_multiple_overrides_call_last_function()#
Test that the newest (last) overriding function is called when multiple overrides are specified.
- edx_django_utils.tests.test_pluggable_override.test_multiple_overrides_fallback_to_base_function()#
Test that the overriding functions can eventually call the base one.
- edx_django_utils.tests.test_pluggable_override.test_multiple_overrides_fallback_to_previous_function()#
Test that the last overriding function can call the previous one from the chain.
- edx_django_utils.tests.test_pluggable_override.test_no_override()#
Test that the original function is called when an override is not specified.
- edx_django_utils.tests.test_pluggable_override.test_override()#
Test that the overriding function is called.
- edx_django_utils.tests.test_pluggable_override.transform(x)#