aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIlja <domainepublic@spectraltheorem.be>2020-10-05 11:26:08 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2021-08-06 07:59:53 +0200
commitc0489f9fac78701345c2902fa59bd99381bc27ab (patch)
tree2d80f1780fae08e02503a98e18ed244123da76c1 /test
parent64002e92adcf08564d9b8e3fa2dcf7c07c72145a (diff)
downloadpleroma-c0489f9fac78701345c2902fa59bd99381bc27ab.tar.gz
Fixed deprecation warning checks
When a setting was deprecated, the code would stop checking for the rest of the possible deprications. This also meant that the settings weren't rewritten to the new settings for deprecated settings besides the first one.
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/config/deprecation_warnings_test.exs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pleroma/config/deprecation_warnings_test.exs b/test/pleroma/config/deprecation_warnings_test.exs
index 84459de8f..c5e2b20f4 100644
--- a/test/pleroma/config/deprecation_warnings_test.exs
+++ b/test/pleroma/config/deprecation_warnings_test.exs
@@ -73,7 +73,7 @@ defmodule Pleroma.Config.DeprecationWarningsTest do
{:media_removal, [{"some.removal", ""}, {"some.other.instance", "Some reason"}]}
]
- capture_log(fn -> DeprecationWarnings.check_simple_policy_tuples() end)
+ capture_log(fn -> DeprecationWarnings.warn() end)
assert Config.get([:mrf_simple]) == expected_config
end
@@ -122,7 +122,7 @@ defmodule Pleroma.Config.DeprecationWarningsTest do
expected_config = [{"domain.com", "some reason"}, {"some.tld", ""}]
- capture_log(fn -> DeprecationWarnings.check_quarantined_instances_tuples() end)
+ capture_log(fn -> DeprecationWarnings.warn() end)
assert Config.get([:instance, :quarantined_instances]) == expected_config
end
@@ -172,7 +172,7 @@ defmodule Pleroma.Config.DeprecationWarningsTest do
expected_config = [{"domain.com", "some reason"}, {"some.tld", ""}]
- capture_log(fn -> DeprecationWarnings.check_transparency_exclusions_tuples() end)
+ capture_log(fn -> DeprecationWarnings.warn() end)
assert Config.get([:mrf, :transparency_exclusions]) == expected_config
end