Add a test for custom runtime modules

This commit is contained in:
Egor Kislitsyn 2019-12-06 17:05:09 +07:00
commit a75d4a41e0
4 changed files with 27 additions and 3 deletions

View file

@ -81,9 +81,11 @@ defmodule Pleroma.Application do
raise "Invalid custom modules"
{:ok, modules, _warnings} ->
Enum.each(modules, fn mod ->
IO.puts("Custom module loaded: #{inspect(mod)}")
end)
if @env != :test do
Enum.each(modules, fn mod ->
IO.puts("Custom module loaded: #{inspect(mod)}")
end)
end
:ok
end