1- from helpers import my_plugin_test
21import pytest
2+ from helpers import my_plugin_test
33from robotlibcore import Module , PluginError , PluginParser
44
55
@@ -19,17 +19,17 @@ def test_plugins_string_to_modules(plugin_parser):
1919 result = plugin_parser ._string_to_modules ("path.to.MyLibrary,path.to.OtherLibrary" )
2020 assert result == [
2121 Module ("path.to.MyLibrary" , [], {}),
22- Module ("path.to.OtherLibrary" , [], {})
22+ Module ("path.to.OtherLibrary" , [], {}),
2323 ]
2424 result = plugin_parser ._string_to_modules ("path.to.MyLibrary , path.to.OtherLibrary" )
2525 assert result == [
2626 Module ("path.to.MyLibrary" , [], {}),
27- Module ("path.to.OtherLibrary" , [], {})
27+ Module ("path.to.OtherLibrary" , [], {}),
2828 ]
2929 result = plugin_parser ._string_to_modules ("path.to.MyLibrary;foo;bar , path.to.OtherLibrary;1" )
3030 assert result == [
3131 Module ("path.to.MyLibrary" , ["foo" , "bar" ], {}),
32- Module ("path.to.OtherLibrary" , ["1" ], {})
32+ Module ("path.to.OtherLibrary" , ["1" ], {}),
3333 ]
3434 result = plugin_parser ._string_to_modules ("PluginWithKwArgs.py;kw1=Text1;kw2=Text2" )
3535 assert result == [
@@ -52,7 +52,7 @@ def test_parse_plugins_as_list(plugin_parser):
5252 assert len (plugins ) == 1
5353 assert isinstance (plugins [0 ], my_plugin_test .TestClass )
5454 plugins = plugin_parser .parse_plugins (
55- ["helpers.my_plugin_test.TestClass" , "helpers.my_plugin_test.TestClassWithBase" ]
55+ ["helpers.my_plugin_test.TestClass" , "helpers.my_plugin_test.TestClassWithBase" ],
5656 )
5757 assert len (plugins ) == 2
5858 assert isinstance (plugins [0 ], my_plugin_test .TestClass )
@@ -81,11 +81,11 @@ def test_plugin_python_objects():
8181 class PythonObject :
8282 x = 1
8383 y = 2
84+
8485 python_object = PythonObject ()
8586 parser = PluginParser (my_plugin_test .LibraryBase , [python_object ])
8687 plugins = parser .parse_plugins ("helpers.my_plugin_test.TestPluginWithPythonArgs;4" )
8788 assert len (plugins ) == 1
8889 plugin = plugins [0 ]
8990 assert plugin .python_class .x == 1
9091 assert plugin .python_class .y == 2
91-
0 commit comments