openedx-unsupported / wg-developer-experience

Old issue repository for the former Developer Experience Working Group
4 stars 0 forks source link

fix: pass pytest cms ProctoringExamSettingsGetTests #91

Closed Carlos-Muniz closed 1 year ago

Carlos-Muniz commented 2 years ago

As part of openedx/wg-developer-experience#36, several tests have been discovered that are not passing in tutor, but passing in devstack. The following tests may not be run by tutor, or may be failing in tutor.

cms/djangoapps/contentstore/rest_api/v1/tests/test_views.py::ProctoringExamSettingsGetTests::

For more information about the tests that passed, failed, skipped, or never ran, see the spreadsheet with all the tests.

Carlos-Muniz commented 1 year ago

Tests ran in lms bash via tutor dev run lms bash all pass.

cms/djangoapps/contentstore/rest_api/v1/tests/test_views.py::ProctoringExamSettingsGetTests::test_200_cour
se_instructor PASSED [ 14%]
cms/djangoapps/contentstore/rest_api/v1/tests/test_views.py::ProctoringExamSettingsGetTests::test_200_glob
al_staff PASSED [ 28%]
cms/djangoapps/contentstore/rest_api/v1/tests/test_views.py::ProctoringExamSettingsGetTests::test_403_if_i
nstructor_in_another_course PASSED [ 42%]
cms/djangoapps/contentstore/rest_api/v1/tests/test_views.py::ProctoringExamSettingsGetTests::test_403_if_s
tudent PASSED [ 57%]
cms/djangoapps/contentstore/rest_api/v1/tests/test_views.py::ProctoringExamSettingsGetTests::test_404_no_c
ourse_module PASSED [ 71%]
cms/djangoapps/contentstore/rest_api/v1/tests/test_views.py::ProctoringExamSettingsGetTests::test_provider
s_with_disabled_lti PASSED [ 85%]
cms/djangoapps/contentstore/rest_api/v1/tests/test_views.py::ProctoringExamSettingsGetTests::test_provider
s_with_enabled_lti PASSED [100%]

This is not the case when ran in cms bash via tutor dev run cms bash. This is because settings.ROOT_URLCONF = lms.urls, even when ran in cms bash. This is related to https://github.com/overhangio/2u-tutor-adoption/issues/48

Carlos-Muniz commented 1 year ago

Closing this ticket because it is no longer needed and is a symptom of an issue documented in another ticket.

Carlos-Muniz commented 1 year ago

This test does pass in tutor. See openedx/wg-developer-experience#155 for more details.