diff options
| author | Lain Soykaf <lain@lain.com> | 2023-12-12 12:55:53 +0400 | 
|---|---|---|
| committer | Lain Soykaf <lain@lain.com> | 2023-12-12 12:55:53 +0400 | 
| commit | 4ba03aa29bb37b13def63fdd5fc8358fe9bde890 (patch) | |
| tree | 69b014882e87241208ec141c7bbe6fee1be62eff /test | |
| parent | 22c4d89dbbc45169dfc325e64527e6dd30f7c422 (diff) | |
| download | pleroma-4ba03aa29bb37b13def63fdd5fc8358fe9bde890.tar.gz pleroma-4ba03aa29bb37b13def63fdd5fc8358fe9bde890.zip | |
MastodonAPITest: Fix tests
Diffstat (limited to 'test')
| -rw-r--r-- | test/pleroma/web/mastodon_api/mastodon_api_test.exs | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/test/pleroma/web/mastodon_api/mastodon_api_test.exs b/test/pleroma/web/mastodon_api/mastodon_api_test.exs index 250a20352..190c13611 100644 --- a/test/pleroma/web/mastodon_api/mastodon_api_test.exs +++ b/test/pleroma/web/mastodon_api/mastodon_api_test.exs @@ -7,11 +7,13 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPITest do    alias Pleroma.Notification    alias Pleroma.ScheduledActivity +  alias Pleroma.UnstubbedConfigMock, as: ConfigMock    alias Pleroma.User    alias Pleroma.Web.CommonAPI    alias Pleroma.Web.MastodonAPI.MastodonAPI    import Pleroma.Factory +  import Mox    describe "follow/3" do      test "returns error when followed user is deactivated" do @@ -88,6 +90,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPITest do    describe "get_scheduled_activities/2" do      test "returns user scheduled activities" do +      ConfigMock +      |> stub_with(Pleroma.Test.StaticConfig) +        user = insert(:user)        today = | 
