added test
This commit is contained in:
parent
c9b5e3feda
commit
e4c61f1741
|
@ -9,3 +9,5 @@ config :quack, level: :info
|
||||||
config :pleroma, Pleroma.Repo, pool: Ecto.Adapters.SQL.Sandbox
|
config :pleroma, Pleroma.Repo, pool: Ecto.Adapters.SQL.Sandbox
|
||||||
|
|
||||||
config :postgrex, :json_library, Poison
|
config :postgrex, :json_library, Poison
|
||||||
|
|
||||||
|
config :pleroma, :database, rum_enabled: true
|
||||||
|
|
|
@ -50,6 +50,7 @@ defmodule Mix.Tasks.Pleroma.ConfigTest do
|
||||||
config3 = ConfigDB.get_by_params(%{group: ":quack", key: ":level"})
|
config3 = ConfigDB.get_by_params(%{group: ":quack", key: ":level"})
|
||||||
refute ConfigDB.get_by_params(%{group: ":pleroma", key: "Pleroma.Repo"})
|
refute ConfigDB.get_by_params(%{group: ":pleroma", key: "Pleroma.Repo"})
|
||||||
refute ConfigDB.get_by_params(%{group: ":postgrex", key: ":json_library"})
|
refute ConfigDB.get_by_params(%{group: ":postgrex", key: ":json_library"})
|
||||||
|
refute ConfigDB.get_by_params(%{group: ":pleroma", key: ":database"})
|
||||||
|
|
||||||
assert config1.value == [key: "value", key2: [Repo]]
|
assert config1.value == [key: "value", key2: [Repo]]
|
||||||
assert config2.value == [key: "value2", key2: ["Activity"]]
|
assert config2.value == [key: "value2", key2: ["Activity"]]
|
||||||
|
|
Loading…
Reference in New Issue