fixed clear config after test
authorMaksim Pechnikov <parallel588@gmail.com>
Wed, 21 Aug 2019 18:24:35 +0000 (21:24 +0300)
committerMaksim Pechnikov <parallel588@gmail.com>
Wed, 21 Aug 2019 18:24:35 +0000 (21:24 +0300)
test/user_test.exs
test/web/activity_pub/activity_pub_test.exs
test/web/activity_pub/transmogrifier_test.exs
test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs

index b70133a94f5b746c1bfd1cce4c0839e34d7b3e87..661ffc0b3273af66847f3790f7ff054810fd35b4 100644 (file)
@@ -541,6 +541,9 @@ defmodule Pleroma.UserTest do
       avatar: %{some: "avatar"}
     }
 
+    clear_config([:instance, :user_bio_length])
+    clear_config([:instance, :user_name_length])
+
     test "it confirms validity" do
       cs = User.remote_user_creation(@valid_remote)
       assert cs.valid?
index f20cd28401f63d2ab2eac77eb9c7363ba5fef3ef..1515f4eb6a677d62602e673693e8b8266c758803 100644 (file)
@@ -555,7 +555,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
     note_two = insert(:note, data: %{"context" => "suya.."})
     activity_two = insert(:note_activity, note: note_two)
 
-    {:ok, activity_two} = CommonAPI.add_mute(user, activity_two)
+    {:ok, _activity_two} = CommonAPI.add_mute(user, activity_two)
 
     assert [_activity_two, _activity_one] =
              ActivityPub.fetch_activities([], %{"muting_user" => user, "with_muted" => true})
index d8fbcd6280bf3e848cd36df689da62071aba88af..629c76c97c197a40979450d19ecd28388eca8011 100644 (file)
@@ -24,6 +24,8 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
     :ok
   end
 
+  clear_config([:instance, :max_remote_account_fields])
+
   describe "handle_incoming" do
     test "it ignores an incoming notice if we already have it" do
       activity = insert(:note_activity)
index dd443495be2c68e1b26eee46e6c2d3cc87bb32bb..87ee82050cf47c65296354cbe4d903558a8d8466 100644 (file)
@@ -9,6 +9,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController.UpdateCredentialsTest do
   use Pleroma.Web.ConnCase
 
   import Pleroma.Factory
+  clear_config([:instance, :max_account_fields])
 
   describe "updating credentials" do
     test "sets user settings in a generic way", %{conn: conn} do