diff options
author | Alex Gleason <alex@alexgleason.me> | 2021-05-14 09:09:32 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2021-05-14 09:09:32 -0500 |
commit | bcf6efce15f76f4796ee51639ea0f8d0299efa0b (patch) | |
tree | 24b187685f1a72d699d34c48ba1d2202c353dd40 /test/support/conn_case.ex | |
parent | 543e9402d64bce556f85294f91dc690c9acec51f (diff) | |
parent | 5a57b025c7745ebdc7ecf8c7d6b75bcc6770562a (diff) | |
download | pleroma-bcf6efce15f76f4796ee51639ea0f8d0299efa0b.tar.gz pleroma-bcf6efce15f76f4796ee51639ea0f8d0299efa0b.zip |
Merge remote-tracking branch 'upstream/attachment-meta' into blurhash
Diffstat (limited to 'test/support/conn_case.ex')
-rw-r--r-- | test/support/conn_case.ex | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/support/conn_case.ex b/test/support/conn_case.ex index 953aa010a..deee98599 100644 --- a/test/support/conn_case.ex +++ b/test/support/conn_case.ex @@ -67,13 +67,11 @@ defmodule Pleroma.Web.ConnCase do end defp json_response_and_validate_schema( - %{ - private: %{ - open_api_spex: %{operation_id: op_id, operation_lookup: lookup, spec: spec} - } - } = conn, + %{private: %{operation_id: op_id}} = conn, status ) do + {spec, lookup} = OpenApiSpex.Plug.PutApiSpec.get_spec_and_operation_lookup(conn) + content_type = conn |> Plug.Conn.get_resp_header("content-type") |