1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-onl
5 defmodule Mix.Tasks.Pleroma.Ecto.MigrateTest do
6 use Pleroma.DataCase, async: true
7 import ExUnit.CaptureLog
10 test "ecto.migrate info message" do
11 level = Logger.level()
12 Logger.configure(level: :warn)
14 assert capture_log(fn ->
15 Mix.Tasks.Pleroma.Ecto.Migrate.run()
16 end) =~ "[info] Already up"
18 Logger.configure(level: level)