X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fpython-plugin-provider%2Fbt_plugin_test_python_plugin_provider.py;h=c0baa1d52d01f6d9aa465820a17d82bc8a69887d;hb=f5567ea88d172767b34373bc6e402da8bfd85ef8;hp=2f53ccaa680ffd45bc2604367756b2a8a1b3ce78;hpb=88b3fc9c233989c30ca8e3582b4923713ec51e81;p=babeltrace.git diff --git a/tests/python-plugin-provider/bt_plugin_test_python_plugin_provider.py b/tests/python-plugin-provider/bt_plugin_test_python_plugin_provider.py index 2f53ccaa..c0baa1d5 100644 --- a/tests/python-plugin-provider/bt_plugin_test_python_plugin_provider.py +++ b/tests/python-plugin-provider/bt_plugin_test_python_plugin_provider.py @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2019 EfficiOS Inc. +# + import bt2 @@ -6,24 +11,26 @@ class MyIter(bt2._UserMessageIterator): @bt2.plugin_component_class -class MySource(bt2._UserSourceComponent, - message_iterator_class=MyIter): +class MySource(bt2._UserSourceComponent, message_iterator_class=MyIter): pass @bt2.plugin_component_class -class MyFilter(bt2._UserFilterComponent, - message_iterator_class=MyIter): +class MyFilter(bt2._UserFilterComponent, message_iterator_class=MyIter): pass @bt2.plugin_component_class class MySink(bt2._UserSinkComponent): - def _consume(self): + def _user_consume(self): pass -bt2.register_plugin(__name__, 'sparkling', author='Philippe Proulx', - description='A delicious plugin.', - version=(1, 2, 3, 'EXTRA'), - license='MIT') +bt2.register_plugin( + __name__, + "sparkling", + author="Philippe Proulx", + description="A delicious plugin.", + version=(1, 2, 3, "EXTRA"), + license="MIT", +)