diff options
author | lain <lain@soykaf.club> | 2020-08-18 11:31:13 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-08-18 11:31:13 +0000 |
commit | 566749f77ad5291e28e2a90e32c39637149bdd01 (patch) | |
tree | 9c1d20c8bb8cc6bd8267bb2c1680f74f3a1394e5 /test/web/twitter_api/util_controller_test.exs | |
parent | 42ce7a4bab454f4b1ba41eedfac19b1050cd111d (diff) | |
parent | a0f5eb1a552cf161f0efb746d74c4c590de4f02f (diff) | |
download | pleroma-566749f77ad5291e28e2a90e32c39637149bdd01.tar.gz |
Merge branch 'purge-user' into 'develop'
Purge a local user upon deletion, fixes #2062
Closes #2062
See merge request pleroma/pleroma!2898
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 |