diff options
author | Lain Soykaf <lain@lain.com> | 2023-12-11 10:41:27 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2023-12-11 10:41:27 +0400 |
commit | d19f5d18e989ff4ee3953f50362f4b0aff596fbd (patch) | |
tree | 263b695ac137dc989ca87c74ff04808834088144 | |
parent | 6a738720ec0a2f2edda007527554a840c48d865a (diff) | |
download | pleroma-d19f5d18e989ff4ee3953f50362f4b0aff596fbd.tar.gz pleroma-d19f5d18e989ff4ee3953f50362f4b0aff596fbd.zip |
UpdateCredentialsTest: Fix tests
-rw-r--r-- | test/pleroma/web/mastodon_api/update_credentials_test.exs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pleroma/web/mastodon_api/update_credentials_test.exs b/test/pleroma/web/mastodon_api/update_credentials_test.exs index 45412bb34..fc8b79536 100644 --- a/test/pleroma/web/mastodon_api/update_credentials_test.exs +++ b/test/pleroma/web/mastodon_api/update_credentials_test.exs @@ -4,13 +4,22 @@ defmodule Pleroma.Web.MastodonAPI.UpdateCredentialsTest do alias Pleroma.Repo + alias Pleroma.UnstubbedConfigMock, as: ConfigMock alias Pleroma.User use Pleroma.Web.ConnCase import Mock + import Mox import Pleroma.Factory + setup do + ConfigMock + |> stub_with(Pleroma.Test.StaticConfig) + + :ok + end + describe "updating credentials" do setup do: oauth_access(["write:accounts"]) setup :request_content_type |