X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Fconfig%2Fdeprecation_warnings_test.exs;h=555661a715481539df6e333df6d60e33c0e80df5;hb=184742af5eed2c48ba8518f1e114cbe0655ad467;hp=548ee87b01b6ed784028562519bb5631c096bd6d;hpb=98af7b59e478752e9e8294e03c3993f3145fd750;p=akkoma diff --git a/test/config/deprecation_warnings_test.exs b/test/config/deprecation_warnings_test.exs index 548ee87b0..555661a71 100644 --- a/test/config/deprecation_warnings_test.exs +++ b/test/config/deprecation_warnings_test.exs @@ -54,4 +54,12 @@ defmodule Pleroma.Config.DeprecationWarningsTest do assert Pleroma.Config.get(new_group2) == 2 assert Pleroma.Config.get(new_group3) == 3 end + + test "check_media_proxy_whitelist_config/0" do + clear_config([:media_proxy, :whitelist], ["https://example.com", "example2.com"]) + + assert capture_log(fn -> + Pleroma.Config.DeprecationWarnings.check_media_proxy_whitelist_config() + end) =~ "Your config is using old format (only domain) for MediaProxy whitelist option" + end end