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