def test_util_2(self): print('test_util_1 valid -a') # start(False) from halocli.util import Util result = Util.check_package_in_env("halo-test-plugin") print("r=" + str(result)) expected_output = 1 assert len(result) == expected_output
def get_plugin_class(self, package_name): class_list = Util.check_package_in_env(package_name) if len(class_list) > 1: raise HaloPluginClassException( "too many plugin entry point classes package: " + package_name) if len(class_list) == 1: return class_list[0] raise HaloPluginClassException( "plugin entry point class not found for package: " + package_name)
def test_util_1(self): print('test_util_1 valid -a') #start(False) from halocli.util import Util expected_output_log = "plugin package: pandas not installed" try: result = Util.check_package_in_env("pandas") print("r=" + str(result)) except Exception as e: print("e=" + str(e)) assert str(e) == expected_output_log