summaryrefslogtreecommitdiff
path: root/test/test_helper.exs
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2025-02-25 17:08:21 +0400
committerLain Soykaf <lain@lain.com>2025-02-25 17:08:21 +0400
commitc31fabdebddbd434a9fcff57cb36613f52ebc6a2 (patch)
tree01ed83a3f253ff1269620c3d91266b4c7fc748f6 /test/test_helper.exs
parentee291f08e82eee596e5e8651a8bbcf7dad147dc7 (diff)
downloadpleroma-c31fabdebddbd434a9fcff57cb36613f52ebc6a2.tar.gz
pleroma-c31fabdebddbd434a9fcff57cb36613f52ebc6a2.zip
Mogrify/Mogrifun: Asyncify
Diffstat (limited to 'test/test_helper.exs')
-rw-r--r--test/test_helper.exs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_helper.exs b/test/test_helper.exs
index fed7ce8a7..94661353b 100644
--- a/test/test_helper.exs
+++ b/test/test_helper.exs
@@ -34,7 +34,13 @@ defmodule Pleroma.Test.StaticConfig do
@behaviour Pleroma.Config.Getting
@config Application.get_all_env(:pleroma)
+ @impl true
def get(path, default \\ nil) do
get_in(@config, path) || default
end
+
+ @impl true
+ def get!(path) do
+ get_in(@config, path)
+ end
end