2020-03-09 09:59:37 -06:00
|
|
|
use Mix.Config
|
|
|
|
|
2020-03-10 08:23:04 -06:00
|
|
|
if Mix.env() == :test do
|
2020-03-31 13:45:14 -06:00
|
|
|
config :ex_unit, capture_logs: true
|
2020-03-26 16:06:55 -06:00
|
|
|
mapper = fn mod -> config :farmbot_ext, mod, children: [] end
|
2020-03-30 16:43:29 -06:00
|
|
|
|
2020-03-26 16:06:55 -06:00
|
|
|
list = [
|
|
|
|
FarmbotExt,
|
|
|
|
FarmbotExt.AMQP.ChannelSupervisor,
|
|
|
|
FarmbotExt.API.DirtyWorker.Supervisor,
|
|
|
|
FarmbotExt.API.EagerLoader.Supervisor,
|
2020-03-30 16:43:29 -06:00
|
|
|
FarmbotExt.Bootstrap.Supervisor
|
2020-03-26 16:06:55 -06:00
|
|
|
]
|
2020-03-30 16:43:29 -06:00
|
|
|
|
2020-03-26 16:06:55 -06:00
|
|
|
Enum.map(list, mapper)
|
2020-03-10 08:23:04 -06:00
|
|
|
end
|