Skip to content

Commit

Permalink
fix: quality
Browse files Browse the repository at this point in the history
  • Loading branch information
alangsto committed Nov 4, 2024
1 parent 47d1216 commit 063c2f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion edx_proctoring/management/commands/reset_attempts.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
to remove attempts that have not been started or completed, as it will not
reset problem state or grade overrides.
"""
import csv
import logging
import time

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
"""
Tests for the reset_attempts management command
"""

import ddt
from tempfile import NamedTemporaryFile
import ddt

from django.core.management import call_command

Expand Down Expand Up @@ -58,8 +57,8 @@ def test_run_command(self, num_to_delete):

with NamedTemporaryFile() as file:
with open(file.name, 'w') as writing_file:
for id in ids:
writing_file.write(str(id) + '\n')
for num in ids:
writing_file.write(str(num) + '\n')

call_command(
'reset_attempts',
Expand Down

0 comments on commit 063c2f6

Please sign in to comment.