diff options
| author | Alex Gleason <alex@alexgleason.me> | 2021-04-30 14:21:17 -0500 |
|---|---|---|
| committer | Alex Gleason <alex@alexgleason.me> | 2021-04-30 14:21:17 -0500 |
| commit | 926a233cc4683b5c2511690166bca0bf09338361 (patch) | |
| tree | 175df0ef9a43fe5bb468329bfaaeab39fa830139 /test/support/conn_case.ex | |
| parent | c16c7fdb8794df8558cf8fbe4231d8f9ec01bb6d (diff) | |
| parent | 377f84f3678f9c2541fbd4a200cd93c5ab0dea24 (diff) | |
| download | pleroma-926a233cc4683b5c2511690166bca0bf09338361.tar.gz pleroma-926a233cc4683b5c2511690166bca0bf09338361.zip | |
Merge remote-tracking branch 'upstream/develop' into simplepolicy-announce-leak
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") |
