Esempio n. 1
0
def drop(config, pf, target):
    """ drop 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_drop(pf, target)
Esempio n. 2
0
def drop(config, pf, target):
    """ drop 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_drop(pf, target)
Esempio n. 3
0
 def test_lp_drop_with_wrong_target(self):
     lp = LinchpinCli()
     target = "doesnotexists"
     pf = im.get_mock_pf_path()
     lp.lp_drop(pf, target)
Esempio n. 4
0
 def test_lp_drop_without_params(self):
     lp = LinchpinCli()
     lp.lp_drop()