Example #1
0
def test_find_tools_returns_empty_dict_if_no_tools_are_found():
    tools = ('fakeoptipng',)
    cmds = helpers.find_tools(tools)
    assert cmds == {}
Example #2
0
def test_find_tools_returns_empty_dict_if_no_tools_are_found():
    tools = ('fakeoptipng', )
    cmds = helpers.find_tools(tools)
    assert cmds == {}
Example #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
Example #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