Add a test for custom runtime modules
This commit is contained in:
parent
e4292cbfad
commit
a75d4a41e0
4 changed files with 27 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue