summaryrefslogtreecommitdiff
path: root/test/test_helper.exs
diff options
context:
space:
mode:
authorMaxim Filippov <colixer@gmail.com>2019-09-26 19:01:54 +0300
committerMaxim Filippov <colixer@gmail.com>2019-09-26 19:01:54 +0300
commite7836adf21421de7a6d1d84fd605ec7d7f207cda (patch)
treeca378665486e37ec82a19feb95c84d2131b83e7a /test/test_helper.exs
parentdf15ed13d15db5b5a371345fcb9968b5af4100af (diff)
parent6abe12dceda8d0d32878208987a9631d5d546a3d (diff)
downloadpleroma-e7836adf21421de7a6d1d84fd605ec7d7f207cda.tar.gz
pleroma-e7836adf21421de7a6d1d84fd605ec7d7f207cda.zip
Merge branch 'develop' into feature/moderation-log-filters
Diffstat (limited to 'test/test_helper.exs')
-rw-r--r--test/test_helper.exs7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_helper.exs b/test/test_helper.exs
index a927b2c3d..c8dbee010 100644
--- a/test/test_helper.exs
+++ b/test/test_helper.exs
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
os_exclude = if :os.type() == {:unix, :darwin}, do: [skip_on_mac: true], else: []
@@ -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)