Skip to content

Commit

Permalink
test: use different course id
Browse files Browse the repository at this point in the history
  • Loading branch information
varshamenon4 committed Apr 19, 2024
1 parent f8a7f29 commit e11b5b6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ def test_num_queries_correct(self):
def test_dupe_user_csv(self):
""" Assert that the course staff roles are correctly created given duplicate users in csv """
username, email = 'pam', '[email protected]'
lines = [f'{username},{email},{self.course_role},{self.course_id}\n',
f'{username},{email},{self.course_role},{self.course_id}\n']
course_id_2 = 'course-v1:edx+test+f21'

lines = [f'{username},{email},{self.course_role},{self.course_id}\n',
f'{username},{email},{self.course_role},{course_id_2}\n']

with NamedTemporaryFile() as csv:
csv = self._write_test_csv(csv, lines)
call_command(self.command, f'--csv_path={csv.name}')
Expand Down

0 comments on commit e11b5b6

Please sign in to comment.