diff options
author | rinpatch <rinpatch@sdf.org> | 2019-09-18 23:34:13 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-09-18 23:34:13 +0300 |
commit | a12aeb09c42f1c120b78d517cfbad2fe29c88006 (patch) | |
tree | 057ac0dbc2efe3ad307007e1a111c67eebe04f76 /test/test_helper.exs | |
parent | 40c968626dde499969d90f256d5ef6d1b1d5e2b4 (diff) | |
download | pleroma-a12aeb09c42f1c120b78d517cfbad2fe29c88006.tar.gz pleroma-a12aeb09c42f1c120b78d517cfbad2fe29c88006.zip |
Cleanup uploads after the tests are finished
Diffstat (limited to 'test/test_helper.exs')
-rw-r--r-- | test/test_helper.exs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_helper.exs b/test/test_helper.exs index a927b2c3d..6a389365f 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -7,3 +7,8 @@ ExUnit.start(exclude: os_exclude) Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, :manual) Mox.defmock(Pleroma.ReverseProxy.ClientMock, for: Pleroma.ReverseProxy.Client) {:ok, _} = Application.ensure_all_started(:ex_machina) + +ExUnit.after_suite(fn _results -> + uploads = Pleroma.Config.get([Pleroma.Uploaders.Local, :uploads], "test/uploads") + File.rm_rf!(uploads) +end) |