Add more details to the cheatsheat for FollowBot MRF
[akkoma] / test / test_helper.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 os_exclude = if :os.type() == {:unix, :darwin}, do: [skip_on_mac: true], else: []
6 ExUnit.start(exclude: [:federated | os_exclude])
7
8 Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, :manual)
9
10 Mox.defmock(Pleroma.ReverseProxy.ClientMock, for: Pleroma.ReverseProxy.Client)
11 Mox.defmock(Pleroma.GunMock, for: Pleroma.Gun)
12
13 {:ok, _} = Application.ensure_all_started(:ex_machina)
14
15 ExUnit.after_suite(fn _results ->
16 uploads = Pleroma.Config.get([Pleroma.Uploaders.Local, :uploads], "test/uploads")
17 File.rm_rf!(uploads)
18 end)