예제 #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)