mirror of
https://git.rape.pet/ulith/amputoma.git
synced 2025-02-24 21:53:59 +01:00

Caching can't work in async tests, so for them it is mocked to a null cache that is always empty. Synchronous tests are stubbed with the real Cachex, which is emptied after every test.
5 lines
213 B
Elixir
5 lines
213 B
Elixir
# Pleroma: A lightweight social networking server
|
|
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
Mox.defmock(Pleroma.CachexMock, for: Pleroma.Caching)
|