Exemplo n.º 1
0
def test_find_tools_returns_empty_dict_if_no_tools_are_found():
    tools = ('fakeoptipng',)
    cmds = helpers.find_tools(tools)
    assert cmds == {}
Exemplo n.º 2
0
def test_find_tools_returns_empty_dict_if_no_tools_are_found():
    tools = ('fakeoptipng', )
    cmds = helpers.find_tools(tools)
    assert cmds == {}
Exemplo n.º 3
0
def test_find_tools_finds_them():
    tools = ('optipng',)
    cmds = helpers.find_tools(tools)

    path = os.path.join(TOOLS_DIR, 'optipng')
    assert cmds['optipng'] == path
Exemplo n.º 4
0
def test_find_tools_finds_them():
    tools = ('optipng', )
    cmds = helpers.find_tools(tools)

    path = os.path.join(TOOLS_DIR, 'optipng')
    assert cmds['optipng'] == path