Add basic configuration management module.

This commit is contained in:
lain 2018-09-08 14:01:00 +02:00 committed by William Pitcock
commit 9b77030d3c
2 changed files with 25 additions and 0 deletions

10
test/config_test.exs Normal file
View file

@ -0,0 +1,10 @@
defmodule Pleroma.ConfigTest do
use Pleroma.DataCase
alias Pleroma.Config
test "get returns the item at the path if there is one" do
Config.put([:instance, :name], "Plemora")
assert Config.get([:instance, :name]) == "Plemora"
assert Config.get([:unknown]) == nil
end
end