diff options
author | Lain Soykaf <lain@lain.com> | 2023-12-11 09:43:49 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2023-12-11 09:43:49 +0400 |
commit | 3cce929eecdbabfb4bf31938851239f8418c7ba2 (patch) | |
tree | 7cbba7aa94bc56875c9000d79a0c7ce8cefce497 /test/test_helper.exs | |
parent | 90a47ca050c5839e8b4dc3bac315dc436d49152d (diff) | |
download | pleroma-3cce929eecdbabfb4bf31938851239f8418c7ba2.tar.gz pleroma-3cce929eecdbabfb4bf31938851239f8418c7ba2.zip |
ChatValidationTest: Fix tests.
Diffstat (limited to 'test/test_helper.exs')
-rw-r--r-- | test/test_helper.exs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_helper.exs b/test/test_helper.exs index 7727cffbc..ddce27015 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -18,3 +18,12 @@ ExUnit.after_suite(fn _results -> uploads = Pleroma.Config.get([Pleroma.Uploaders.Local, :uploads], "test/uploads") File.rm_rf!(uploads) end) + +defmodule Pleroma.Test.StaticConfig do + @behaviour Pleroma.Config.Getting + @config Application.get_all_env(:pleroma) + + def get(path, default \\ nil) do + get_in(@config, path) || default + end +end |