diff options
author | lain <lain@soykaf.club> | 2019-12-05 17:16:23 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-12-05 17:16:23 +0000 |
commit | 67d8df04a440ec9b2949bdddd3a3d8dd70c9b140 (patch) | |
tree | 4fc937160ad56b81bd11b17e4a97a7a6255bd6e6 /test/web/common_api/common_api_test.exs | |
parent | d0bd4348b34075e1d9ed6905255c85c452e0b4ca (diff) | |
parent | d3bce89edddf72e2eb78e7c84a93c5bd4b6c8ff8 (diff) | |
download | pleroma-67d8df04a440ec9b2949bdddd3a3d8dd70c9b140.tar.gz pleroma-67d8df04a440ec9b2949bdddd3a3d8dd70c9b140.zip |
Merge branch '1335-user-api-id-fields-relations' into 'develop'
[#1335] User: refactoring of AP ID fields into relations
Closes #1335
See merge request pleroma/pleroma!1963
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r-- | test/web/common_api/common_api_test.exs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs index 138488d44..b5d6d4055 100644 --- a/test/web/common_api/common_api_test.exs +++ b/test/web/common_api/common_api_test.exs @@ -509,14 +509,14 @@ defmodule Pleroma.Web.CommonAPITest do end test "add a reblog mute", %{muter: muter, muted: muted} do - {:ok, muter} = CommonAPI.hide_reblogs(muter, muted) + {:ok, _reblog_mute} = CommonAPI.hide_reblogs(muter, muted) assert User.showing_reblogs?(muter, muted) == false end test "remove a reblog mute", %{muter: muter, muted: muted} do - {:ok, muter} = CommonAPI.hide_reblogs(muter, muted) - {:ok, muter} = CommonAPI.show_reblogs(muter, muted) + {:ok, _reblog_mute} = CommonAPI.hide_reblogs(muter, muted) + {:ok, _reblog_mute} = CommonAPI.show_reblogs(muter, muted) assert User.showing_reblogs?(muter, muted) == true end @@ -526,7 +526,7 @@ defmodule Pleroma.Web.CommonAPITest do test "also unsubscribes a user" do [follower, followed] = insert_pair(:user) {:ok, follower, followed, _} = CommonAPI.follow(follower, followed) - {:ok, followed} = User.subscribe(follower, followed) + {:ok, _subscription} = User.subscribe(follower, followed) assert User.subscribed_to?(follower, followed) |