diff options
author | lain <lain@soykaf.club> | 2021-01-21 09:03:26 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2021-01-21 09:03:26 +0000 |
commit | ba40af054cc90417c5b2b347e325b53c7346e29c (patch) | |
tree | ead7b2e7bfbbfb297a466eb9c9cd84aedda197e4 /test/support/channel_case.ex | |
parent | b5899fda1a38c2ce2d26ebd5082d864c84105622 (diff) | |
parent | 318d6dde1c6cb0c3d6c9e31b976d71de8c721d8d (diff) | |
download | pleroma-ba40af054cc90417c5b2b347e325b53c7346e29c.tar.gz pleroma-ba40af054cc90417c5b2b347e325b53c7346e29c.zip |
Merge branch 'test-cases-mox-setup' into 'develop'
Mox mode setup tweak; refactoring
See merge request pleroma/pleroma!3263
Diffstat (limited to 'test/support/channel_case.ex')
-rw-r--r-- | test/support/channel_case.ex | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/test/support/channel_case.ex b/test/support/channel_case.ex index 6888984a2..1fbf6f100 100644 --- a/test/support/channel_case.ex +++ b/test/support/channel_case.ex @@ -30,19 +30,5 @@ defmodule Pleroma.Web.ChannelCase do end end - setup tags do - :ok = Ecto.Adapters.SQL.Sandbox.checkout(Pleroma.Repo) - - if tags[:async] do - Mox.stub_with(Pleroma.CachexMock, Pleroma.NullCache) - Mox.set_mox_private() - else - Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, {:shared, self()}) - Mox.stub_with(Pleroma.CachexMock, Pleroma.CachexProxy) - Mox.set_mox_global() - Pleroma.DataCase.clear_cachex() - end - - :ok - end + setup tags, do: Pleroma.DataCase.setup_multi_process_mode(tags) end |