Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
675B

  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. os_exclude = if :os.type() == {:unix, :darwin}, do: [skip_on_mac: true], else: []
  5. ExUnit.start(exclude: [:federated | os_exclude])
  6. Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, :manual)
  7. Mox.defmock(Pleroma.ReverseProxy.ClientMock, for: Pleroma.ReverseProxy.Client)
  8. Mox.defmock(Pleroma.GunMock, for: Pleroma.Gun)
  9. {:ok, _} = Application.ensure_all_started(:ex_machina)
  10. ExUnit.after_suite(fn _results ->
  11. uploads = Pleroma.Config.get([Pleroma.Uploaders.Local, :uploads], "test/uploads")
  12. File.rm_rf!(uploads)
  13. end)