Commit 49d41b46 by Jason Bau

fix direct access broken test courseware/tests/test_access.py

parent 36d00459
......@@ -102,6 +102,7 @@ class AccessTestCase(TestCase):
"""
mock_unit = Mock()
mock_unit._class_tags = {} # Needed for detached check in _has_access_descriptor
mock_unit.category = "problem"
def verify_access(student_should_have_access):
""" Verify the expected result from _has_access_descriptor """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment