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