Fix more Logger warn -> warning

This commit is contained in:
Mark Felder 2023-11-28 19:34:07 +00:00
parent cd3abe0b4c
commit 2207fafa91
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ defmodule Mix.Tasks.Pleroma.Ecto.MigrateTest do
test "ecto.migrate info message" do test "ecto.migrate info message" do
level = Logger.level() level = Logger.level()
Logger.configure(level: :warn) Logger.configure(level: :warning)
assert capture_log(fn -> assert capture_log(fn ->
Mix.Tasks.Pleroma.Ecto.Migrate.run() Mix.Tasks.Pleroma.Ecto.Migrate.run()

View File

@ -9,7 +9,7 @@ defmodule Mix.Tasks.Pleroma.Ecto.RollbackTest do
test "ecto.rollback info message" do test "ecto.rollback info message" do
level = Logger.level() level = Logger.level()
Logger.configure(level: :warn) Logger.configure(level: :warning)
assert capture_log(fn -> assert capture_log(fn ->
Mix.Tasks.Pleroma.Ecto.Rollback.run(["--env", "test"]) Mix.Tasks.Pleroma.Ecto.Rollback.run(["--env", "test"])

View File

@ -443,13 +443,13 @@ defmodule Pleroma.ConfigDBTest do
test "common keyword" do test "common keyword" do
assert ConfigDB.to_elixir_types([ assert ConfigDB.to_elixir_types([
%{"tuple" => [":level", ":warn"]}, %{"tuple" => [":level", ":warning"]},
%{"tuple" => [":meta", [":all"]]}, %{"tuple" => [":meta", [":all"]]},
%{"tuple" => [":path", ""]}, %{"tuple" => [":path", ""]},
%{"tuple" => [":val", nil]}, %{"tuple" => [":val", nil]},
%{"tuple" => [":webhook_url", "https://hooks.slack.com/services/YOUR-KEY-HERE"]} %{"tuple" => [":webhook_url", "https://hooks.slack.com/services/YOUR-KEY-HERE"]}
]) == [ ]) == [
level: :warn, level: :warning,
meta: [:all], meta: [:all],
path: "", path: "",
val: nil, val: nil,