logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma

migrate_test.exs (552B)


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