diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2023-08-04 09:16:08 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2023-08-04 09:49:53 +0200 |
commit | 5ac2b7417d052a493b38ee05b393ae7c78e89484 (patch) | |
tree | 0731e4178d2e38ae1a13059aa546b17d87364cc5 | |
parent | c37561214a803f9011d5ec6af8b8c07e547c19ff (diff) | |
download | pleroma-5ac2b7417d052a493b38ee05b393ae7c78e89484.tar.gz pleroma-5ac2b7417d052a493b38ee05b393ae7c78e89484.zip |
test: Fix warnings
-rw-r--r-- | test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs | 2 | ||||
-rw-r--r-- | test/pleroma/web/mastodon_api/update_credentials_test.exs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs b/test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs index 9d99df27c..83bf59c6f 100644 --- a/test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs +++ b/test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs @@ -65,7 +65,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier.EmojiReactHandlingTest do object = Object.get_by_ap_id(data["object"]) assert object.data["reaction_count"] == 1 - assert match?([[emoji, _]], object.data["reactions"]) + assert match?([[^emoji, _]], object.data["reactions"]) end test "it reject invalid emoji reactions" do diff --git a/test/pleroma/web/mastodon_api/update_credentials_test.exs b/test/pleroma/web/mastodon_api/update_credentials_test.exs index 57fa0f047..40f79d103 100644 --- a/test/pleroma/web/mastodon_api/update_credentials_test.exs +++ b/test/pleroma/web/mastodon_api/update_credentials_test.exs @@ -375,7 +375,7 @@ defmodule Pleroma.Web.MastodonAPI.UpdateCredentialsTest do "pleroma_background_image" => new_background_oversized }) - assert user_response = json_response_and_validate_schema(res, 413) + assert _user_response = json_response_and_validate_schema(res, 413) assert user.background == %{} clear_config([:instance, :upload_limit], upload_limit) |