Example #1
0
def test_process_local_config_commands():
    c = YamlConfig()
    c.process_local_config({'commands': {
        'push (Upload code to remove server)': ['sync . {host} --path ticcet/'],
        'pull': ['foo', 'bar']
    }})

    assert c.get_commands() == {
        'push': {
            'help': 'Upload code to remove server',
            'commands':  ['sync . {host} --path ticcet/']
        },
        'pull': {
            'help': 'pull command',
            'commands':  ['foo', 'bar']
        }
    }
Example #2
0
def test_process_local_config_commands():
    c = YamlConfig()
    c.process_local_config({
        'commands': {
            'push (Upload code to remove server)':
            ['sync . {host} --path ticcet/'],
            'pull': ['foo', 'bar']
        }
    })

    assert c.get_commands() == {
        'push': {
            'help': 'Upload code to remove server',
            'commands': ['sync . {host} --path ticcet/']
        },
        'pull': {
            'help': 'pull command',
            'commands': ['foo', 'bar']
        }
    }