Ejemplo n.º 1
0
def test_get_version():
    dependencies = Dependencies(requirements)
    dependencies.dependencies()
    version = dependencies.get_version('Flask-Migrate')
    assert '1.8.0' in version
Ejemplo n.º 2
0
def test_get_result():
    dependencies = Dependencies(requirements)
    dependencies.dependencies()
    result = dependencies.get_result
    assert isinstance(result, dict)
Ejemplo n.º 3
0
def test_find_python_pip():
    dependencies = Dependencies(requirements)
    dependencies.dependencies()
    assert 'Flask' in str(dependencies.get_result)
Ejemplo n.º 4
0
def test_find_java_mvn():
    dependencies = Dependencies(pom)
    dependencies.dependencies()
    assert 'pom-manipulation-io' in str(dependencies.get_result)
Ejemplo n.º 5
0
def test_get_version():
    dependencies = Dependencies(requirements)
    dependencies.dependencies()
    version = dependencies.get_version('Flask')
    assert version == '0.10.1'
Ejemplo n.º 6
0
def test_get_result():
    dependencies = Dependencies(requirements)
    dependencies.dependencies()
    result = dependencies.get_result
    assert isinstance(result, dict)
Ejemplo n.º 7
0
def test_get_version():
    dependencies = Dependencies(requirements)
    dependencies.dependencies()
    version = dependencies.get_version('Flask')
    assert '0.10.1' in version
Ejemplo n.º 8
0
def test_find_java_mvn():
    dependencies = Dependencies(pom)
    dependencies.dependencies()
    assert 'pom-manipulation-io' in str(dependencies.get_result)
Ejemplo n.º 9
0
def test_find_python_pip():
    dependencies = Dependencies(requirements)
    dependencies.dependencies()
    assert 'Flask' in str(dependencies.get_result)