diff options
| author | lain <lain@soykaf.club> | 2019-08-19 15:34:29 +0000 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-08-19 15:34:29 +0000 |
| commit | 222ac3bcbebe496ba8f0363adea40ef4fcf26886 (patch) | |
| tree | d46f6d2447183492d75983986ae2d57b75fdcb0b /test/upload_test.exs | |
| parent | 49ae3191df2a7acfa741e93d6f5142f9cf27dc06 (diff) | |
| parent | a320358703db249ab20df5afd81c92fb42b8cadb (diff) | |
| download | pleroma-222ac3bcbebe496ba8f0363adea40ef4fcf26886.tar.gz pleroma-222ac3bcbebe496ba8f0363adea40ef4fcf26886.zip | |
Merge branch 'support/test_helpers' into 'develop'
added test helpers to clear config after tests
See merge request pleroma/pleroma!1547
Diffstat (limited to 'test/upload_test.exs')
| -rw-r--r-- | test/upload_test.exs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/upload_test.exs b/test/upload_test.exs index 95b16078b..6721fe82e 100644 --- a/test/upload_test.exs +++ b/test/upload_test.exs @@ -250,12 +250,8 @@ defmodule Pleroma.UploadTest do end describe "Setting a custom base_url for uploaded media" do - setup do + clear_config([Pleroma.Upload, :base_url]) do Pleroma.Config.put([Pleroma.Upload, :base_url], "https://cache.pleroma.social") - - on_exit(fn -> - Pleroma.Config.put([Pleroma.Upload, :base_url], nil) - end) end test "returns a media url with configured base_url" do |
