From 1fbf18cd67d5ce51cb82ef7743bec6c3e53f341e Mon Sep 17 00:00:00 2001 From: Johan Castiblanco Date: Thu, 5 Sep 2024 17:32:48 -0500 Subject: [PATCH] fix: update tests for staff in see_in_catalog --- lms/djangoapps/courseware/tests/test_access.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/courseware/tests/test_access.py b/lms/djangoapps/courseware/tests/test_access.py index 45d36ad0a7f8..617c58d83508 100644 --- a/lms/djangoapps/courseware/tests/test_access.py +++ b/lms/djangoapps/courseware/tests/test_access.py @@ -611,7 +611,7 @@ def test__catalog_visibility(self): ) assert not access._has_access_course(user, 'see_in_catalog', course) assert access._has_access_course(user, 'see_about_page', course) - assert access._has_access_course(staff, 'see_in_catalog', course) + assert not access._has_access_course(staff, 'see_in_catalog', course) assert access._has_access_course(staff, 'see_about_page', course) # Now set visibility to none, which means neither in catalog nor about pages @@ -621,7 +621,7 @@ def test__catalog_visibility(self): ) assert not access._has_access_course(user, 'see_in_catalog', course) assert not access._has_access_course(user, 'see_about_page', course) - assert access._has_access_course(staff, 'see_in_catalog', course) + assert not access._has_access_course(staff, 'see_in_catalog', course) assert access._has_access_course(staff, 'see_about_page', course) @patch.dict("django.conf.settings.FEATURES", {'ENABLE_PREREQUISITE_COURSES': True, 'MILESTONES_APP': True})