diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-12-10 15:34:33 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-12-10 15:34:33 +0900 |
commit | c9099f7868eef370839fc5ff02870d50da083676 (patch) | |
tree | fdc0f0cdb2ce53e6a14ed794d6f5965d96a98cdb /tests/plugins | |
parent | 6899d2c29e1a9c0dfe1dd2408eeac93a9670c975 (diff) | |
download | buildstream-c9099f7868eef370839fc5ff02870d50da083676.tar.gz |
pep8 fixes in plugin test case plugins
Diffstat (limited to 'tests/plugins')
-rw-r--r-- | tests/plugins/basics/anotherelement/foo.py | 2 | ||||
-rw-r--r-- | tests/plugins/basics/anothersource/foo.py | 2 | ||||
-rw-r--r-- | tests/plugins/basics/customelement/foo.py | 2 | ||||
-rw-r--r-- | tests/plugins/basics/customsource/foo.py | 2 | ||||
-rw-r--r-- | tests/plugins/basics/nosetup/foo.py | 4 | ||||
-rw-r--r-- | tests/plugins/basics/notatype/foo.py | 2 | ||||
-rw-r--r-- | tests/plugins/basics/wrongtype/foo.py | 3 |
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 |