This test failed since d240785b on devstack. The self.request_factory.get() just return a request object, which is being passed to views.course_about() directly without being processed by edxmako.middleware. The REQUEST_CONTEXT.request in https://github.com/edx/edx-platform/blob/d240785b17bdcaeb11e4ef24ee4a3697da26c9b4/common/djangoapps/edxmako/middleware.py#L39 is None, instead of request object, which contains the LANGUAGE_CODE and other stuff used by the view. Also cleaned up the use of MakoMiddleware. Using the method in edxmako.tests module.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| features | Loading commit data... | |
| management | Loading commit data... | |
| migrations | Loading commit data... | |
| tests | Loading commit data... | |
| __init__.py | Loading commit data... | |
| access.py | Loading commit data... | |
| admin.py | Loading commit data... | |
| courses.py | Loading commit data... | |
| entrance_exams.py | Loading commit data... | |
| field_overrides.py | Loading commit data... | |
| grades.py | Loading commit data... | |
| masquerade.py | Loading commit data... | |
| middleware.py | Loading commit data... | |
| model_data.py | Loading commit data... | |
| models.py | Loading commit data... | |
| module_render.py | Loading commit data... | |
| student_field_overrides.py | Loading commit data... | |
| tabs.py | Loading commit data... | |
| testutils.py | Loading commit data... | |
| url_helpers.py | Loading commit data... | |
| user_state_client.py | Loading commit data... | |
| views.py | Loading commit data... |