diff options
author | rinpatch <rinpatch@sdf.org> | 2020-05-18 17:13:53 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-05-18 17:13:53 +0000 |
commit | a66da971ff2dcd5f1fe82d3826998a282f1448f3 (patch) | |
tree | 4f28dc01f7346b9d7de32c022be61f58d8b2ec70 /test/web/mastodon_api | |
parent | 8e9c939e42b7d649d58ce91465086751031b13c8 (diff) | |
parent | 45c3a7240449133176bf27bd2f753bb71d7f455b (diff) | |
download | pleroma-a66da971ff2dcd5f1fe82d3826998a282f1448f3.tar.gz |
Merge branch 'openapi/use-boolean-like-in-requests' into 'develop'
[OpenAPI] Use BooleanLike in all request bodies
Closes #1782
See merge request pleroma/pleroma!2551
Diffstat (limited to 'test/web/mastodon_api')
-rw-r--r-- | test/web/mastodon_api/controllers/status_controller_test.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/web/mastodon_api/controllers/status_controller_test.exs b/test/web/mastodon_api/controllers/status_controller_test.exs index bdee88fd3..962e64b03 100644 --- a/test/web/mastodon_api/controllers/status_controller_test.exs +++ b/test/web/mastodon_api/controllers/status_controller_test.exs @@ -62,7 +62,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do |> post("/api/v1/statuses", %{ "status" => "cofe", "spoiler_text" => "2hu", - "sensitive" => "false" + "sensitive" => "0" }) {:ok, ttl} = Cachex.ttl(:idempotency_cache, idempotency_key) @@ -81,7 +81,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do |> post("/api/v1/statuses", %{ "status" => "cofe", "spoiler_text" => "2hu", - "sensitive" => "false" + "sensitive" => 0 }) assert %{"id" => second_id} = json_response(conn_two, 200) @@ -93,7 +93,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do |> post("/api/v1/statuses", %{ "status" => "cofe", "spoiler_text" => "2hu", - "sensitive" => "false" + "sensitive" => "False" }) assert %{"id" => third_id} = json_response_and_validate_schema(conn_three, 200) |