Skip to content

Commit

Permalink
Test user upload file delete on archive item update
Browse files Browse the repository at this point in the history
  • Loading branch information
ammar257ammar committed Dec 19, 2024
1 parent b6e8f6d commit 85e38db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/tests/archives_tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from grandchallenge.components.models import ComponentInterface, InterfaceKind
from grandchallenge.notifications.models import Notification
from grandchallenge.subdomains.utils import reverse
from grandchallenge.uploads.models import UserUpload
from tests.algorithms_tests.factories import AlgorithmJobFactory, Job
from tests.archives_tests.factories import (
ArchiveFactory,
Expand Down Expand Up @@ -933,6 +934,7 @@ def test_archive_item_add_file(
)
},
)
assert not UserUpload.objects.filter(pk=upload.pk).exists()
assert response.status_code == 302
assert "test" in ArchiveItem.objects.get().values.first().file.name

Expand Down

0 comments on commit 85e38db

Please sign in to comment.