summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2023-11-28 20:19:31 +0000
committerMark Felder <feld@feld.me>2023-12-29 22:50:26 -0500
commit36b3867787b3aff206df4a7d5549d9269dcf0457 (patch)
treed00ac9f320cbd3f33d2461c44e1b3bddaca0cd3e /test
parentb51ba39dd1310bb525496645df13d956f0fc7b12 (diff)
Fix test "transforms config to tuples"
This should have never worked. The default empty values for the other MRF Simple options will always be there.
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/config/deprecation_warnings_test.exs5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/pleroma/config/deprecation_warnings_test.exs b/test/pleroma/config/deprecation_warnings_test.exs
index 9a482e46e..fca2324ff 100644
--- a/test/pleroma/config/deprecation_warnings_test.exs
+++ b/test/pleroma/config/deprecation_warnings_test.exs
@@ -125,13 +125,12 @@ defmodule Pleroma.Config.DeprecationWarningsTest do
media_removal: ["some.removal", {"some.other.instance", "Some reason"}]
)
- expected_config = [
+ expected_config =
{:media_removal, [{"some.removal", ""}, {"some.other.instance", "Some reason"}]}
- ]
capture_log(fn -> DeprecationWarnings.warn() end)
- assert Config.get([:mrf_simple]) == expected_config
+ assert expected_config in Config.get([:mrf_simple])
end
test "doesn't give a warning with correct config" do