Skip to content

Commit

Permalink
Test user upload file delete on display set update
Browse files Browse the repository at this point in the history
  • Loading branch information
ammar257ammar committed Dec 19, 2024
1 parent 85e38db commit ea8b841
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/tests/reader_studies_tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Question,
)
from grandchallenge.subdomains.utils import reverse
from grandchallenge.uploads.models import UserUpload
from tests.cases_tests import RESOURCE_PATH
from tests.components_tests.factories import (
ComponentInterfaceFactory,
Expand Down Expand Up @@ -568,6 +569,7 @@ def do_update():
user=user,
method=client.post,
)
assert not UserUpload.objects.filter(pk=upload.pk).exists()
assert response.status_code == 302
assert response.headers["HX-Redirect"] == reverse(
"reader-studies:display_sets", kwargs={"slug": rs.slug}
Expand Down

0 comments on commit ea8b841

Please sign in to comment.