summaryrefslogtreecommitdiffstats
path: root/test/local-content/collections/ansible_collections/testns/test_collection/plugins/filter/test_filter.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/local-content/collections/ansible_collections/testns/test_collection/plugins/filter/test_filter.py')
-rw-r--r--test/local-content/collections/ansible_collections/testns/test_collection/plugins/filter/test_filter.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/local-content/collections/ansible_collections/testns/test_collection/plugins/filter/test_filter.py b/test/local-content/collections/ansible_collections/testns/test_collection/plugins/filter/test_filter.py
new file mode 100644
index 0000000..58bc269
--- /dev/null
+++ b/test/local-content/collections/ansible_collections/testns/test_collection/plugins/filter/test_filter.py
@@ -0,0 +1,17 @@
+"""A filter plugin."""
+# pylint: disable=invalid-name
+
+
+def a_test_filter(a, b):
+ """Return a string containing both a and b."""
+ return f"{a}:{b}"
+
+
+# pylint: disable=too-few-public-methods
+class FilterModule:
+ """Filter plugin."""
+
+ @staticmethod
+ def filters():
+ """Return filters."""
+ return {"test_filter": a_test_filter}