Skip to content

Commit

Permalink
test: add tests when user is not in any group
Browse files Browse the repository at this point in the history
  • Loading branch information
asadali145 committed Nov 25, 2024
1 parent 5800a67 commit 8f01f78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lms/djangoapps/course_blocks/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ def get_course_hierarchy(self):
@ddt.data(
(1, ('course', 'B', 'O'), True),
(1, ('course', 'A', 'B', 'O'), False),
(None, ('course', 'B', 'O'), True),
(None, ('course', 'A', 'B', 'O'), False),
)
@ddt.unpack
def test_get_course_blocks(self, group_id, expected_blocks, user_known):
Expand Down

0 comments on commit 8f01f78

Please sign in to comment.