Ejemplo n.º 1
0
def lc_command(argv=None, aws_config=None):
    from acli.commands import lc as command_lc
    lc_res = docopt(command_lc.__doc__, argv=argv)
    if any((lc_res.get('ls'), lc_res.get('list'))):
        asg.lc_list(aws_config)
    elif lc_res.get('info'):
        asg.lc_info(aws_config, lc_name=lc_res.get('<lc_name>'))
Ejemplo n.º 2
0
def test_lc_info_service(fake_lc):
    with pytest.raises(SystemExit):
        assert lc_info(aws_config=config, lc_name="test_lc")
Ejemplo n.º 3
0
def test_lc_info_service(fake_lc):
    with pytest.raises(SystemExit):
        assert lc_info(aws_config=config, lc_name='test_lc')