commit: d19f5d18e989ff4ee3953f50362f4b0aff596fbd
parent 6a738720ec0a2f2edda007527554a840c48d865a
Author: Lain Soykaf <lain@lain.com>
Date: Mon, 11 Dec 2023 10:41:27 +0400
UpdateCredentialsTest: Fix tests
Diffstat:
1 file 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
@@ -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