Exemplo n.º 1
0
def test_resolve_targets():
    script = Script("build")
    build = script.resolve_targets(["build"])
    default = script.resolve_targets()
    assert_equal(default, ['parser', 'testing.run', 'tests'])
    assert len(build) > 0
    assert 'build' in build
    assert 'tests' in build
Exemplo n.º 2
0
def test_show():
    script = Script("build")
    script.show()
Exemplo n.º 3
0
def test_resolve_depends():
    script = Script("build")
    for target in script.targets:
        assert target in script.resolve_depends(target)