You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
URLField serializer is not playing nice with "built in" test server address http://testserver #9704
Local runtime schema serialization endpoints dandi/dandi-archive#2386
where our response model contains schema_url which is a URLField and when we plugged in a "proper" URL to local test instance http://testserver/api/schema/latest/dandiset/, then response we were getting from server became with code 400 and .content saying
(Pdb) p resp.content
b'{"schema_url":["Enter a valid URL."]}'
running pytest on which would give you an ugly excepted demanding configuration since i18n would not yet be configured to give a proper localized error...
but replacing that simple hostname testserver with a domain name with the TLD (e.g. testserver.com), which is AFAIK is not required for a URL to be valid, pytest would pass just fine.
Activity
auvipy commentedon May 21, 2025
you should have open a discussion first