diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-18 20:30:31 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-18 20:30:31 +0300 |
commit | ec3719f5391d6f9945cec2e36287049d72743cd4 (patch) | |
tree | 6be0c45d7168d47491e4d49a4ad558e9cd335990 /test/upload_test.exs | |
parent | 69341cbcbac2459faa43bb924577e84dac353982 (diff) | |
download | pleroma-ec3719f5391d6f9945cec2e36287049d72743cd4.tar.gz pleroma-ec3719f5391d6f9945cec2e36287049d72743cd4.zip |
Improved in-test config management functions.
Diffstat (limited to 'test/upload_test.exs')
-rw-r--r-- | test/upload_test.exs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/upload_test.exs b/test/upload_test.exs index 6ce42b630..6bf7f2417 100644 --- a/test/upload_test.exs +++ b/test/upload_test.exs @@ -250,9 +250,7 @@ defmodule Pleroma.UploadTest do end describe "Setting a custom base_url for uploaded media" do - clear_config([Pleroma.Upload, :base_url]) do - Pleroma.Config.put([Pleroma.Upload, :base_url], "https://cache.pleroma.social") - end + clear_config([Pleroma.Upload, :base_url], "https://cache.pleroma.social") test "returns a media url with configured base_url" do base_url = Pleroma.Config.get([Pleroma.Upload, :base_url]) |