Skip to content

Commit

Permalink
test delete file upload in api for job with multiple new inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ammar257ammar committed Jan 7, 2025
1 parent 63aafb0 commit 85e9c59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/tests/algorithms_tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
ComponentInterfaceValue,
InterfaceKindChoices,
)
from grandchallenge.uploads.models import UserUpload
from tests.algorithms_tests.factories import (
AlgorithmImageFactory,
AlgorithmJobFactory,
Expand Down Expand Up @@ -211,6 +212,10 @@ def test_create_job_with_multiple_new_inputs(
assert job.time_limit == 600
assert job.inputs.count() == 6

assert not UserUpload.objects.filter(
pk=algorithm_with_multiple_inputs.file_upload.pk
).exists()

assert sorted(
[
int.pk
Expand Down

0 comments on commit 85e9c59

Please sign in to comment.