示例#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
示例#2
0
def test_show():
    script = Script("build")
    script.show()
示例#3
0
def test_resolve_depends():
    script = Script("build")
    for target in script.targets:
        assert target in script.resolve_depends(target)