diff options
author | lain <lain@soykaf.club> | 2020-08-18 13:31:42 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-08-18 13:31:42 +0200 |
commit | 3998ef9d64ac37a945467bae58aed108819a6ca5 (patch) | |
tree | 556296a1942c159ed94c0aba9d3c596f3316e92b /test/web/twitter_api/util_controller_test.exs | |
parent | 2f8c3c842dd48c26009e1272a28220175d0b1f06 (diff) | |
parent | 566749f77ad5291e28e2a90e32c39637149bdd01 (diff) | |
download | pleroma-3998ef9d64ac37a945467bae58aed108819a6ca5.tar.gz pleroma-3998ef9d64ac37a945467bae58aed108819a6ca5.zip |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into features/validators-audio
Diffstat (limited to 'test/web/twitter_api/util_controller_test.exs')
-rw-r--r-- | test/web/twitter_api/util_controller_test.exs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/web/twitter_api/util_controller_test.exs b/test/web/twitter_api/util_controller_test.exs index 109c1e637..354d77b56 100644 --- a/test/web/twitter_api/util_controller_test.exs +++ b/test/web/twitter_api/util_controller_test.exs @@ -586,10 +586,16 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do end end - test "with proper permissions and valid password", %{conn: conn} do + test "with proper permissions and valid password", %{conn: conn, user: user} do conn = post(conn, "/api/pleroma/delete_account", %{"password" => "test"}) - + ObanHelpers.perform_all() assert json_response(conn, 200) == %{"status" => "success"} + + user = User.get_by_id(user.id) + assert user.deactivated == true + assert user.name == nil + assert user.bio == nil + assert user.password_hash == nil end end end |