1
0
Fork 0
mirror of https://git.youjo.love/youjo/youjo-be.git synced 2025-03-13 06:20:00 +01:00

Merge branch 'fix/test-upload-cleanup' into 'develop'

Cleanup uploads after the tests are finished

See merge request 
This commit is contained in:
Haelwenn 2019-09-18 21:00:09 +00:00
commit 56286447ee

View file

@ -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)