fix tests
This commit is contained in:
parent
3c00af82dc
commit
9c5d1cb9ed
@ -180,7 +180,7 @@ def delete(conn, %{name: name}) do
|
|||||||
|> json(%{error: "pack name cannot be empty"})
|
|> json(%{error: "pack name cannot be empty"})
|
||||||
|
|
||||||
{:error, error, _} ->
|
{:error, error, _} ->
|
||||||
error_message = add_posix_error("Couldn't delete the #{name} pack", error)
|
error_message = add_posix_error("Couldn't delete the `#{name}` pack", error)
|
||||||
|
|
||||||
conn
|
conn
|
||||||
|> put_status(:internal_server_error)
|
|> put_status(:internal_server_error)
|
||||||
|
@ -471,7 +471,7 @@ test "returns an error on deletes pack when the file system is not writable", %{
|
|||||||
|> delete("/api/pleroma/emoji/pack?name=test_emoji_pack")
|
|> delete("/api/pleroma/emoji/pack?name=test_emoji_pack")
|
||||||
|> json_response_and_validate_schema(500) == %{
|
|> json_response_and_validate_schema(500) == %{
|
||||||
"error" =>
|
"error" =>
|
||||||
"Couldn't delete the pack test_emoji_pack (POSIX error: Permission denied)"
|
"Couldn't delete the `test_emoji_pack` pack (POSIX error: Permission denied)"
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
after
|
after
|
||||||
|
Loading…
Reference in New Issue
Block a user