mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-26 02:40:18 +00:00
17 lines
394 B
Elixir
17 lines
394 B
Elixir
|
defmodule Mix.Tasks.Pleroma.Ecto.RollbackTest do
|
||
|
use Pleroma.DataCase
|
||
|
import ExUnit.CaptureLog
|
||
|
require Logger
|
||
|
|
||
|
test "ecto.rollback info message" do
|
||
|
level = Logger.level()
|
||
|
Logger.configure(level: :warn)
|
||
|
|
||
|
assert capture_log(fn ->
|
||
|
Mix.Tasks.Pleroma.Ecto.Rollback.run()
|
||
|
end) =~ "[info] Rollback succesfully"
|
||
|
|
||
|
Logger.configure(level: level)
|
||
|
end
|
||
|
end
|