summaryrefslogtreecommitdiff
path: root/tests/plugins/pipeline/customsource/pluginsources/foo.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-08-30 22:17:16 -0400
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-08-30 22:59:17 -0400
commit4005ff5f7a2aedc0d39425278fb337b4aa6a85d6 (patch)
treefad116f392a3a17bc576c1b18c56dd390ecf96ed /tests/plugins/pipeline/customsource/pluginsources/foo.py
parent347983ca1641bd9fa121863008d290992a70d210 (diff)
downloadbuildstream-format-version.tar.gz
plugin tests: Adding new tests with plugins loaded in a pipelineformat-version
o Testing that we can load a custom element or source o Testing that we assert and trigger an error when the requested format version of a plugin by the project is greater than the reported version of the plugin
Diffstat (limited to 'tests/plugins/pipeline/customsource/pluginsources/foo.py')
-rw-r--r--tests/plugins/pipeline/customsource/pluginsources/foo.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/plugins/pipeline/customsource/pluginsources/foo.py b/tests/plugins/pipeline/customsource/pluginsources/foo.py
new file mode 100644
index 000000000..d2b0d9c6d
--- /dev/null
+++ b/tests/plugins/pipeline/customsource/pluginsources/foo.py
@@ -0,0 +1,17 @@
+from buildstream import Source, Consistency
+
+
+class FooSource(Source):
+
+ def preflight(self):
+ pass
+
+ def configure(self, node):
+ pass
+
+ def get_consistency(self):
+ return Consistency.INCONSISTENT
+
+
+def setup():
+ return FooSource