We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 760ca25 commit bc1f8cdCopy full SHA for bc1f8cd
app/tests/components_tests/test_serializers.py
@@ -595,6 +595,20 @@ def test_civ_post_dicom_uploads_empty_value_invalid():
595
in serializer.errors["user_uploads"]
596
)
597
598
+ payload = {
599
+ "interface": interface.slug,
600
+ "image_name": "",
601
+ "user_uploads": [None],
602
+ }
603
+
604
+ serializer = ComponentInterfaceValuePostSerializer(data=payload)
605
606
+ assert not serializer.is_valid()
607
+ assert (
608
+ "Incorrect type. Expected URL string, received NoneType."
609
+ in serializer.errors["user_uploads"]
610
+ )
611
612
613
@pytest.mark.django_db
614
@pytest.mark.parametrize("kind,", InterfaceKinds.image)
0 commit comments