diff options
| author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-28 16:50:37 +0400 | 
|---|---|---|
| committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-28 16:50:37 +0400 | 
| commit | 560f2c1979ca4d49f18abd6de6aac49875bfc771 (patch) | |
| tree | dc8b11f412d49022415dd4051e765a53cd4fa44b /test/web/common_api | |
| parent | 12bb7fc0dc94068d8337f10fc337ab23c8c7e77e (diff) | |
| download | pleroma-560f2c1979ca4d49f18abd6de6aac49875bfc771.tar.gz pleroma-560f2c1979ca4d49f18abd6de6aac49875bfc771.zip  | |
Add OpenAPI spec for ReportController
Diffstat (limited to 'test/web/common_api')
| -rw-r--r-- | test/web/common_api/common_api_test.exs | 30 | 
1 files changed, 15 insertions, 15 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs index 1758662b0..c6ccc02c4 100644 --- a/test/web/common_api/common_api_test.exs +++ b/test/web/common_api/common_api_test.exs @@ -485,9 +485,9 @@ defmodule Pleroma.Web.CommonAPITest do        comment = "foobar"        report_data = %{ -        "account_id" => target_user.id, -        "comment" => comment, -        "status_ids" => [activity.id] +        account_id: target_user.id, +        comment: comment, +        status_ids: [activity.id]        }        note_obj = %{ @@ -517,9 +517,9 @@ defmodule Pleroma.Web.CommonAPITest do        {:ok, %Activity{id: report_id}} =          CommonAPI.report(reporter, %{ -          "account_id" => target_user.id, -          "comment" => "I feel offended", -          "status_ids" => [activity.id] +          account_id: target_user.id, +          comment: "I feel offended", +          status_ids: [activity.id]          })        {:ok, report} = CommonAPI.update_report_state(report_id, "resolved") @@ -538,9 +538,9 @@ defmodule Pleroma.Web.CommonAPITest do        {:ok, %Activity{id: report_id}} =          CommonAPI.report(reporter, %{ -          "account_id" => target_user.id, -          "comment" => "I feel offended", -          "status_ids" => [activity.id] +          account_id: target_user.id, +          comment: "I feel offended", +          status_ids: [activity.id]          })        assert CommonAPI.update_report_state(report_id, "test") == {:error, "Unsupported state"} @@ -552,16 +552,16 @@ defmodule Pleroma.Web.CommonAPITest do        {:ok, %Activity{id: first_report_id}} =          CommonAPI.report(reporter, %{ -          "account_id" => target_user.id, -          "comment" => "I feel offended", -          "status_ids" => [activity.id] +          account_id: target_user.id, +          comment: "I feel offended", +          status_ids: [activity.id]          })        {:ok, %Activity{id: second_report_id}} =          CommonAPI.report(reporter, %{ -          "account_id" => target_user.id, -          "comment" => "I feel very offended!", -          "status_ids" => [activity.id] +          account_id: target_user.id, +          comment: "I feel very offended!", +          status_ids: [activity.id]          })        {:ok, report_ids} =  | 
