diff options
author | Mark Felder <feld@feld.me> | 2024-02-06 14:34:59 -0500 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2024-02-06 18:33:54 -0500 |
commit | 6b7b443ff95587b33f4b666e68ed82dc6fb485a5 (patch) | |
tree | 035b15931ca6f06f490425af8c15f27b5136e733 /test/support/cachex_proxy.ex | |
parent | e9573627792df4cdaea15f1ca1563594f477cd8e (diff) | |
download | pleroma-6b7b443ff95587b33f4b666e68ed82dc6fb485a5.tar.gz pleroma-6b7b443ff95587b33f4b666e68ed82dc6fb485a5.zip |
Pleroma.Web.RichMedia.Parser: Remove test-specific codepaths
Also consolidate Tesla mocks into the HttpRequestMock module.
Tests were not exercising the real codepaths. The Rich Media Preview only works with https, but most of these tests were only mocking http.
Diffstat (limited to 'test/support/cachex_proxy.ex')
-rw-r--r-- | test/support/cachex_proxy.ex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/support/cachex_proxy.ex b/test/support/cachex_proxy.ex index 83ae5610f..8f27986a9 100644 --- a/test/support/cachex_proxy.ex +++ b/test/support/cachex_proxy.ex @@ -27,9 +27,15 @@ defmodule Pleroma.CachexProxy do defdelegate fetch!(cache, key, func), to: Cachex @impl true + defdelegate fetch(cache, key, func), to: Cachex + + @impl true defdelegate expire_at(cache, str, num), to: Cachex @impl true + defdelegate expire(cache, str, num), to: Cachex + + @impl true defdelegate exists?(cache, key), to: Cachex @impl true |