(self, *, raise_exception=False)
| 37 | selector = serializers.CharField(required=False, allow_null=True, allow_blank=True, label=_('selector')) |
| 38 | |
| 39 | def is_valid(self, *, raise_exception=False): |
| 40 | super().is_valid(raise_exception=True) |
| 41 | source_url = self.data.get('source_url') |
| 42 | response = Fork(source_url, []).fork() |
| 43 | if response.status == 500: |
| 44 | raise AppApiException(500, _('URL error, cannot parse [{source_url}]').format(source_url=source_url)) |
| 45 | |
| 46 | class BaseMeta(serializers.Serializer): |
| 47 | def is_valid(self, *, raise_exception=False): |
nothing calls this directly
no test coverage detected