aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorhref <href@random.sh>2020-07-12 17:23:33 +0200
committerhref <href@random.sh>2020-07-12 17:23:33 +0200
commit4347d2de5eb609bbfa1a206a5de5df925d3a0696 (patch)
tree8bbe69ae109f3bcc3e3d13572930017d6e3d38d4 /test
parent11dd29ef3f9bb5b0b3109eb572c3d5ae2c830ea3 (diff)
downloadpleroma-4347d2de5eb609bbfa1a206a5de5df925d3a0696.tar.gz
Config/Docs: Expand behaviour suggestions at runtime
Diffstat (limited to 'test')
-rw-r--r--test/docs/generator_test.exs12
1 files changed, 2 insertions, 10 deletions
diff --git a/test/docs/generator_test.exs b/test/docs/generator_test.exs
index 9c9f4357b..b32918a69 100644
--- a/test/docs/generator_test.exs
+++ b/test/docs/generator_test.exs
@@ -13,21 +13,13 @@ defmodule Pleroma.Docs.GeneratorTest do
key: :uploader,
type: :module,
description: "",
- suggestions:
- Generator.list_modules_in_dir(
- "lib/pleroma/upload/filter",
- "Elixir.Pleroma.Upload.Filter."
- )
+ suggestions: {:list_behaviour_implementations, Pleroma.Upload.Filter}
},
%{
key: :filters,
type: {:list, :module},
description: "",
- suggestions:
- Generator.list_modules_in_dir(
- "lib/pleroma/web/activity_pub/mrf",
- "Elixir.Pleroma.Web.ActivityPub.MRF."
- )
+ suggestions: {:list_behaviour_implementations, Pleroma.Web.ActivityPub.MRF}
},
%{
key: Pleroma.Upload,