def rise(config, pf, target): """ rise module of linchpin cli """ init_dir = os.getcwd() pfs = list_by_ext(init_dir, "PinFile") if len(pfs) == 0: display("ERROR:001") if len(pfs) > 1: display("ERROR:002") pf = pfs[0] lpcli = LinchpinCli() output = lpcli.lp_rise(pf, target)
def test_lp_rise_with_wrong_target(self): lp = LinchpinCli() target = "dosenotexists" pf = im.get_mock_pf_path() lp.lp_rise(pf, target)
def test_lp_rise_wthout_params(self): lp = LinchpinCli() lp.lp_rise()