Tests: Don't run federated tests by default
[akkoma] / test / test_helper.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 ExUnit.start(exclude: [:federated])
6 Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, :manual)
7 Mox.defmock(Pleroma.ReverseProxy.ClientMock, for: Pleroma.ReverseProxy.Client)
8 {:ok, _} = Application.ensure_all_started(:ex_machina)
9
10 ExUnit.after_suite(fn _results ->
11 uploads = Pleroma.Config.get([Pleroma.Uploaders.Local, :uploads], "test/uploads")
12 File.rm_rf!(uploads)
13 end)