summaryrefslogtreecommitdiff
path: root/tests/plugins/bst2/sources/malformed.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/bst2/sources/malformed.py')
-rw-r--r--tests/plugins/bst2/sources/malformed.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/plugins/bst2/sources/malformed.py b/tests/plugins/bst2/sources/malformed.py
new file mode 100644
index 000000000..786e3d619
--- /dev/null
+++ b/tests/plugins/bst2/sources/malformed.py
@@ -0,0 +1,32 @@
+from buildstream import Source
+
+
+class Found(Source):
+ BST_MIN_VERSION = "a pony"
+
+ def configure(self, node):
+ pass
+
+ def preflight(self):
+ pass
+
+ def get_unique_key(self):
+ return {}
+
+ def load_ref(self, node):
+ pass
+
+ def get_ref(self):
+ return {}
+
+ def set_ref(self, ref, node):
+ pass
+
+ def is_cached(self):
+ return False
+
+
+# Plugin entry point
+def setup():
+
+ return Found