Ejemplo n.º 1
0
def test_get_next_best_versions3():
    y = YesVersion('*', '1.0.0')
    versions = ['1.0.0', '1.0.1', '1.1.1', '2.0.1', '2.1.1']
    versions = [_parse_semver(x) for x in versions]

    result = y.get_next_best_versions(versions)
    assert (0 == len(result))
Ejemplo n.º 2
0
def test_get_next_best_versions4():
    y = YesVersion('*', 'Y.Y.Y')
    versions = ['1.0.0', '1.0.1', '1.0.5', '1.1.1', '2.0.1', '2.1.1']
    versions = [_parse_semver(x) for x in versions]

    result = y.get_next_best_versions(versions)
    assert (3 == len(result))
    assert (_parse_semver('1.0.2') in result)
    assert (_parse_semver('1.0.3') in result)
    assert (_parse_semver('1.0.4') in result)