diff options
| author | Maksim <parallel588@gmail.com> | 2019-08-19 15:34:29 +0000 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-08-19 15:34:29 +0000 |
| commit | a320358703db249ab20df5afd81c92fb42b8cadb (patch) | |
| tree | d46f6d2447183492d75983986ae2d57b75fdcb0b /test/uploaders | |
| parent | 49ae3191df2a7acfa741e93d6f5142f9cf27dc06 (diff) | |
| download | pleroma-a320358703db249ab20df5afd81c92fb42b8cadb.tar.gz pleroma-a320358703db249ab20df5afd81c92fb42b8cadb.zip | |
added test helpers to clear config after tests
Diffstat (limited to 'test/uploaders')
| -rw-r--r-- | test/uploaders/s3_test.exs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/uploaders/s3_test.exs b/test/uploaders/s3_test.exs index a0a1cfdf0..171316340 100644 --- a/test/uploaders/s3_test.exs +++ b/test/uploaders/s3_test.exs @@ -11,19 +11,11 @@ defmodule Pleroma.Uploaders.S3Test do import Mock import ExUnit.CaptureLog - setup do - config = Config.get([Pleroma.Uploaders.S3]) - + clear_config([Pleroma.Uploaders.S3]) do Config.put([Pleroma.Uploaders.S3], bucket: "test_bucket", public_endpoint: "https://s3.amazonaws.com" ) - - on_exit(fn -> - Config.put([Pleroma.Uploaders.S3], config) - end) - - :ok end describe "get_file/1" do |
