fix the flaky test for users creation by admin
This commit is contained in:
parent
ad5263c647
commit
e394fc2eef
@ -47,24 +47,8 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
assert json_response(conn, 200) == [
|
response = json_response(conn, 200) |> Enum.map(&Map.get(&1, "type"))
|
||||||
%{
|
assert response == ["success", "success"]
|
||||||
"code" => 200,
|
|
||||||
"data" => %{
|
|
||||||
"email" => "lain@example.org",
|
|
||||||
"nickname" => "lain"
|
|
||||||
},
|
|
||||||
"type" => "success"
|
|
||||||
},
|
|
||||||
%{
|
|
||||||
"code" => 200,
|
|
||||||
"data" => %{
|
|
||||||
"email" => "lain2@example.org",
|
|
||||||
"nickname" => "lain2"
|
|
||||||
},
|
|
||||||
"type" => "success"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test "Cannot create user with exisiting email" do
|
test "Cannot create user with exisiting email" do
|
||||||
|
Loading…
Reference in New Issue
Block a user