ChatValidationTest: Fix tests.

This commit is contained in:
Lain Soykaf 2023-12-11 09:43:49 +04:00
commit 3cce929eec
2 changed files with 20 additions and 0 deletions

View file

@ -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