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 |
---|---|---|
.. | ||
branding | Loading commit data... | |
bulk_email | Loading commit data... | |
ccx | Loading commit data... | |
certificates | Loading commit data... | |
circuit | Loading commit data... | |
class_dashboard | Loading commit data... | |
commerce | Loading commit data... | |
course_structure_api | Loading commit data... | |
course_wiki | Loading commit data... | |
courseware | Loading commit data... | |
dashboard | Loading commit data... | |
debug | Loading commit data... | |
discussion_api | Loading commit data... | |
django_comment_client | Loading commit data... | |
edxnotes | Loading commit data... | |
foldit | Loading commit data... | |
instructor | Loading commit data... | |
instructor_analytics | Loading commit data... | |
instructor_task | Loading commit data... | |
licenses | Loading commit data... | |
lms_migration | Loading commit data... | |
lms_xblock | Loading commit data... | |
lti_provider | Loading commit data... | |
mailing | Loading commit data... | |
mobile_api | Loading commit data... | |
notes | Loading commit data... | |
notification_prefs | Loading commit data... | |
notifier_api | Loading commit data... | |
oauth2_handler | Loading commit data... | |
open_ended_grading | Loading commit data... | |
psychometrics | Loading commit data... | |
shoppingcart | Loading commit data... | |
static_template_view | Loading commit data... | |
staticbook | Loading commit data... | |
student_account | Loading commit data... | |
student_profile | Loading commit data... | |
survey | Loading commit data... | |
teams | Loading commit data... | |
verify_student | Loading commit data... | |
__init__.py | Loading commit data... |