Skip to content

Commit

Permalink
test: update user check
Browse files Browse the repository at this point in the history
  • Loading branch information
varshamenon4 committed Mar 28, 2024
1 parent 6a20932 commit 37daf7a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def test_add_course_staff_with_new_user(self):
with NamedTemporaryFile() as csv:
csv = self._write_test_csv(csv, lines)
call_command(self.command, f'--csv_path={csv.name}')
user = User.objects.filter(username=username, email=email)[0]
user = User.objects.filter(username=username, email=email)
assert user.exists()
assert CourseStaffRole.objects.filter(
user=user.id,
user=user[0].id,
course_id=self.course_id,
role=self.course_role,
).exists()
Expand Down

0 comments on commit 37daf7a

Please sign in to comment.