Do not require description in update action
This commit is contained in:
parent
0f885b4b86
commit
bb03dfdb03
2 changed files with 2 additions and 15 deletions
|
|
@ -94,16 +94,6 @@ defmodule Pleroma.Web.MastodonAPI.MediaControllerTest do
|
|||
assert media["description"] == "test-media"
|
||||
assert refresh_record(object).data["name"] == "test-media"
|
||||
end
|
||||
|
||||
test "/api/v1/media/:id bad request", %{conn: conn, object: object} do
|
||||
media =
|
||||
conn
|
||||
|> put_req_header("content-type", "multipart/form-data")
|
||||
|> put("/api/v1/media/#{object.id}", %{})
|
||||
|> json_response_and_validate_schema(400)
|
||||
|
||||
assert media == %{"error" => "bad_request"}
|
||||
end
|
||||
end
|
||||
|
||||
describe "Get media by id" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue