示例#1
0
def test_get_result():
    dependencies = Dependencies(requirements)
    dependencies.dependencies()
    result = dependencies.get_result
    assert isinstance(result, dict)
示例#2
0
def test_find_java_mvn():
    dependencies = Dependencies(pom)
    dependencies.dependencies()
    assert 'pom-manipulation-io' in dependencies.get_result
示例#3
0
def test_get_version():
    dependencies = Dependencies(requirements)
    dependencies.dependencies()
    version = dependencies.get_version('Flask')
    assert version == '0.10.1'
示例#4
0
def test_find_python_pip():
    dependencies = Dependencies(requirements)
    dependencies.dependencies()
    assert 'Flask' in dependencies.get_result