UpdateCredentialsTest: Fix tests

This commit is contained in:
Lain Soykaf 2023-12-11 10:41:27 +04:00
parent 6a738720ec
commit d19f5d18e9
1 changed files with 9 additions and 0 deletions

View File

@ -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