From 063c2f6438e42b05bcb4d334bec011a5608a34b8 Mon Sep 17 00:00:00 2001 From: Alie Langston Date: Mon, 4 Nov 2024 16:56:39 -0500 Subject: [PATCH] fix: quality --- edx_proctoring/management/commands/reset_attempts.py | 1 - .../management/commands/tests/test_reset_attempts.py | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/edx_proctoring/management/commands/reset_attempts.py b/edx_proctoring/management/commands/reset_attempts.py index 1759bd902b..14c7b18aa2 100644 --- a/edx_proctoring/management/commands/reset_attempts.py +++ b/edx_proctoring/management/commands/reset_attempts.py @@ -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 diff --git a/edx_proctoring/management/commands/tests/test_reset_attempts.py b/edx_proctoring/management/commands/tests/test_reset_attempts.py index 9e6bafd6fa..3798b9ea20 100644 --- a/edx_proctoring/management/commands/tests/test_reset_attempts.py +++ b/edx_proctoring/management/commands/tests/test_reset_attempts.py @@ -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 @@ -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',