Fix test warnings
This commit is contained in:
parent
b553bfd745
commit
f5ef7fe43b
1 changed files with 20 additions and 23 deletions
|
@ -1427,13 +1427,11 @@ test "custom instance thumbnail", %{conn: conn} do
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
res =
|
|
||||||
assert conn
|
assert conn
|
||||||
|> put_req_header("content-type", "application/json")
|
|> put_req_header("content-type", "application/json")
|
||||||
|> post("/api/pleroma/admin/config", %{"configs" => [params]})
|
|> post("/api/pleroma/admin/config", %{"configs" => [params]})
|
||||||
|> json_response_and_validate_schema(200)
|
|> json_response_and_validate_schema(200) ==
|
||||||
|
%{
|
||||||
assert res == %{
|
|
||||||
"configs" => [
|
"configs" => [
|
||||||
%{
|
%{
|
||||||
"db" => [":instance_thumbnail"],
|
"db" => [":instance_thumbnail"],
|
||||||
|
@ -1445,12 +1443,11 @@ test "custom instance thumbnail", %{conn: conn} do
|
||||||
"need_reboot" => false
|
"need_reboot" => false
|
||||||
}
|
}
|
||||||
|
|
||||||
_res =
|
|
||||||
assert conn
|
assert conn
|
||||||
|> get("/api/v1/instance")
|
|> get("/api/v1/instance")
|
||||||
|> json_response_and_validate_schema(200)
|
|> json_response_and_validate_schema(200)
|
||||||
|
|> Map.take(["thumbnail"]) ==
|
||||||
assert res = %{"thumbnail" => "https://example.com/media/new_thumbnail.jpg"}
|
%{"thumbnail" => "https://example.com/media/new_thumbnail.jpg"}
|
||||||
end
|
end
|
||||||
|
|
||||||
test "Concurrent Limiter", %{conn: conn} do
|
test "Concurrent Limiter", %{conn: conn} do
|
||||||
|
|
Loading…
Reference in a new issue