Skip to content

Commit

Permalink
fix: update tests for staff in see_in_catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
johanseto committed Sep 5, 2024
1 parent 4f78c22 commit 1fbf18c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lms/djangoapps/courseware/tests/test_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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})
Expand Down

0 comments on commit 1fbf18c

Please sign in to comment.