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 c9d46af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lms/djangoapps/courseware/tests/test_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def test__catalog_visibility(self):
)
assert 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 just about page
Expand All @@ -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 c9d46af

Please sign in to comment.