Skip to content

Commit

Permalink
FIX test_regrade_admin_student again
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed May 27, 2023
1 parent d16513b commit 6fbde85
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions api/tests/test_regrade_admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
import time

from anubis.models import Submission
from utils import Session, permission_test, with_context
Expand Down Expand Up @@ -43,13 +42,8 @@ def test_regrade_admin_student():
resp = superuser.post(f"/admin/regrade/student/{student_id}")
assert resp["status"] == "Regrade enqueued."

# get the status of the regrade for a student and make sure they get fully procesed
# get the status of the regrade for a student and make sure they get fully processed
status = superuser.get(f"/admin/regrade/status/student/{student_id}")

# make sure total is greater than 0 (meaning it has actually been enqueued)
assert status["total"] > 0

while (status["processed"] != status["total"]):
time.sleep(5)
status = superuser.get(f"/admin/regrade/status/student/{student_id}")
assert status["processed"] == status["total"]

0 comments on commit 6fbde85

Please sign in to comment.