]> git.ipfire.org Git - thirdparty/patchwork.git/commit
tests: Fix compatibility with openapi_core 0.13.7
authorStephen Finucane <stephen@that.guru>
Sat, 20 Feb 2021 13:27:08 +0000 (13:27 +0000)
committerStephen Finucane <stephen@that.guru>
Sat, 20 Feb 2021 14:08:10 +0000 (14:08 +0000)
commitd11ac34e9f0f2a86901ed74da27fa7a2df109728
treee176abd3b8f5446b88c8e185b8aafe5d72136999
parentb0a2d7df929fc1c71db6da09438a7a84d10d659d
tests: Fix compatibility with openapi_core 0.13.7

It seems the 'openapi_core.schema.schemas.models.Format' mechanism of
defining custom formatters was deprecated in openapi_core 0.12.0 but we
never noticed. They've finally broken it in 0.13.7. Switch to the new
thing, 'openapi_core.unmarshalling.schemas.formatters.Formatter', which
expects a slightly different format.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #395
patchwork/tests/api/validator.py