def test_get_result(): dependencies = Dependencies(requirements) dependencies.dependencies() result = dependencies.get_result assert isinstance(result, dict)
def test_find_java_mvn(): dependencies = Dependencies(pom) dependencies.dependencies() assert 'pom-manipulation-io' in dependencies.get_result
def test_get_version(): dependencies = Dependencies(requirements) dependencies.dependencies() version = dependencies.get_version('Flask') assert version == '0.10.1'
def test_find_python_pip(): dependencies = Dependencies(requirements) dependencies.dependencies() assert 'Flask' in dependencies.get_result