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.
This commit is contained in:
Mark Felder 2023-11-28 20:19:31 +00:00
parent b51ba39dd1
commit 36b3867787

View File

@ -125,13 +125,12 @@ defmodule Pleroma.Config.DeprecationWarningsTest do
media_removal: ["some.removal", {"some.other.instance", "Some reason"}] media_removal: ["some.removal", {"some.other.instance", "Some reason"}]
) )
expected_config = [ expected_config =
{:media_removal, [{"some.removal", ""}, {"some.other.instance", "Some reason"}]} {:media_removal, [{"some.removal", ""}, {"some.other.instance", "Some reason"}]}
]
capture_log(fn -> DeprecationWarnings.warn() end) capture_log(fn -> DeprecationWarnings.warn() end)
assert Config.get([:mrf_simple]) == expected_config assert expected_config in Config.get([:mrf_simple])
end end
test "doesn't give a warning with correct config" do test "doesn't give a warning with correct config" do