Exemplo n.º 1
0
 def test_scan_not_implemented(self):
     plugin = BasePlugin({}, True, True, True)
     with pytest.raises(NotImplementedError):
         assert plugin.scan()
Exemplo n.º 2
0
 def test_is_online_testing_supported(self):
     assert BasePlugin({}, False, False, False).is_online_testing_supported() is False
     assert BasePlugin({}, False, False, True).is_online_testing_supported() is False
Exemplo n.º 3
0
 def test_plugin_properties(self):
     plugin = BasePlugin({}, True, True, True)
     assert plugin.supports_android is False
     assert plugin.supports_ios is False
     assert plugin.supports_online is False
Exemplo n.º 4
0
 def test_is_os_supported(self):
     assert BasePlugin({}, False, False, True).is_os_supported() is False
     assert BasePlugin({}, False, True, True).is_os_supported() is False
     assert BasePlugin({}, True, False, True).is_os_supported() is False
     assert BasePlugin({}, True, True, True).is_os_supported() is False
Exemplo n.º 5
0
 def test_plugin_properties_name_desc(self):
     plugin = BasePlugin({}, True, True, True)
     assert plugin.name.startswith('Base')
     assert plugin.desc.startswith('Base')