summaryrefslogtreecommitdiff
path: root/tests/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins')
-rw-r--r--tests/plugins/basics/anotherelement/foo.py2
-rw-r--r--tests/plugins/basics/anothersource/foo.py2
-rw-r--r--tests/plugins/basics/customelement/foo.py2
-rw-r--r--tests/plugins/basics/customsource/foo.py2
-rw-r--r--tests/plugins/basics/nosetup/foo.py4
-rw-r--r--tests/plugins/basics/notatype/foo.py2
-rw-r--r--tests/plugins/basics/wrongtype/foo.py3
7 files changed, 16 insertions, 1 deletions
diff --git a/tests/plugins/basics/anotherelement/foo.py b/tests/plugins/basics/anotherelement/foo.py
index b0b65fcbd..2e067a94f 100644
--- a/tests/plugins/basics/anotherelement/foo.py
+++ b/tests/plugins/basics/anotherelement/foo.py
@@ -1,7 +1,9 @@
from buildstream import Element
+
class AnotherFooElement(Element):
pass
+
def setup():
return AnotherFooElement
diff --git a/tests/plugins/basics/anothersource/foo.py b/tests/plugins/basics/anothersource/foo.py
index bf5df372e..4675b965f 100644
--- a/tests/plugins/basics/anothersource/foo.py
+++ b/tests/plugins/basics/anothersource/foo.py
@@ -1,7 +1,9 @@
from buildstream import Source
+
class AnotherFooSource(Source):
pass
+
def setup():
return AnotherFooSource
diff --git a/tests/plugins/basics/customelement/foo.py b/tests/plugins/basics/customelement/foo.py
index 21eb7b42d..260de8b27 100644
--- a/tests/plugins/basics/customelement/foo.py
+++ b/tests/plugins/basics/customelement/foo.py
@@ -1,7 +1,9 @@
from buildstream import Element
+
class FooElement(Element):
pass
+
def setup():
return FooElement
diff --git a/tests/plugins/basics/customsource/foo.py b/tests/plugins/basics/customsource/foo.py
index aec8ddf60..de78a00ce 100644
--- a/tests/plugins/basics/customsource/foo.py
+++ b/tests/plugins/basics/customsource/foo.py
@@ -1,7 +1,9 @@
from buildstream import Source
+
class FooSource(Source):
pass
+
def setup():
return FooSource
diff --git a/tests/plugins/basics/nosetup/foo.py b/tests/plugins/basics/nosetup/foo.py
index a9f4c5190..0b5a4fa7e 100644
--- a/tests/plugins/basics/nosetup/foo.py
+++ b/tests/plugins/basics/nosetup/foo.py
@@ -2,5 +2,7 @@
# which returns the type that the plugin provides
#
# This plugin fails to do so
+
+
def useless():
- print ("Hello World")
+ print("Hello World")
diff --git a/tests/plugins/basics/notatype/foo.py b/tests/plugins/basics/notatype/foo.py
index 96f89fff1..311a4fb32 100644
--- a/tests/plugins/basics/notatype/foo.py
+++ b/tests/plugins/basics/notatype/foo.py
@@ -1,4 +1,6 @@
# Plugins are supposed to return a subclass type
# of Source or Element, depending on plugin type.
+
+
def setup():
return 5
diff --git a/tests/plugins/basics/wrongtype/foo.py b/tests/plugins/basics/wrongtype/foo.py
index b2cbbee4d..3fe9a1a62 100644
--- a/tests/plugins/basics/wrongtype/foo.py
+++ b/tests/plugins/basics/wrongtype/foo.py
@@ -2,8 +2,11 @@
# of Source or Element, depending on plugin type.
#
# This one fails the requirement
+
+
class Foo():
pass
+
def setup():
return Foo