aboutsummaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2019-06-14 15:45:05 +0000
committerkaniini <nenolod@gmail.com>2019-06-14 15:45:05 +0000
commit270f09dbc2cb145e5a06b72189bd1b91dd3d3a02 (patch)
treebf75fc306788d784d74fb6ca617f3ddd27b75fd2 /test/support
parentb7fc722a2e9e93341229cb122aac605421782295 (diff)
parentc2ca1f22a25d22d6d863406ed05b08c643e5824c (diff)
downloadpleroma-270f09dbc2cb145e5a06b72189bd1b91dd3d3a02.tar.gz
Merge branch 'feature/905-dynamic-configuration-in-sql' into 'develop'
Feature/905 dynamic configuration in sql Closes #905 See merge request pleroma/pleroma!1195
Diffstat (limited to 'test/support')
-rw-r--r--test/support/factory.ex13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/support/factory.ex b/test/support/factory.ex
index be6247ca4..5be34660e 100644
--- a/test/support/factory.ex
+++ b/test/support/factory.ex
@@ -310,4 +310,17 @@ defmodule Pleroma.Factory do
}
}
end
+
+ def config_factory do
+ %Pleroma.Web.AdminAPI.Config{
+ key: sequence(:key, &"some_key_#{&1}"),
+ value:
+ sequence(
+ :value,
+ fn key ->
+ :erlang.term_to_binary(%{another_key: "#{key}somevalue", another: "#{key}somevalue"})
+ end
+ )
+ }
+ end
end