mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 10:09:02 +00:00
Merge branch 'fix/test-upload-cleanup' into 'develop'
Cleanup uploads after the tests are finished See merge request pleroma/pleroma!1695
This commit is contained in:
commit
56286447ee
|
@ -7,3 +7,8 @@ ExUnit.start(exclude: os_exclude)
|
||||||
Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, :manual)
|
Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, :manual)
|
||||||
Mox.defmock(Pleroma.ReverseProxy.ClientMock, for: Pleroma.ReverseProxy.Client)
|
Mox.defmock(Pleroma.ReverseProxy.ClientMock, for: Pleroma.ReverseProxy.Client)
|
||||||
{:ok, _} = Application.ensure_all_started(:ex_machina)
|
{: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)
|
||||||
|
|
Loading…
Reference in a new issue