]> 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:46:58 +0000 (14:46 +0000)
commitefd9ab09baca8e018004dc0efb74ca009d46c5a3
treeffc85960972f482fe06e24f3f9f88423b7f83aa7
parent2253147891d9ddc3e18c590187df204cea23aaaf
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
(cherry picked from commit d11ac34e9f0f2a86901ed74da27fa7a2df109728)
patchwork/tests/api/validator.py