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 a2f1fdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions 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 Expand Up @@ -72,5 +71,4 @@ def handle(self, *args, **options):
log.info(f'{deleted_count} attempts deleted.')
time.sleep(sleep_time)


log.info(f'Job completed. {total_deleted} attempts deleted.')
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 a2f1fdf

Please sign in to comment.