Exemplo n.º 1
0
def test_calver_by_date_future_warning():
    with pytest.warns(UserWarning, match="your previous tag*"):
        calver_by_date(meta(date_to_str(days_offset=-2), config=c, distance=2))
Exemplo n.º 2
0
def test_calver_by_date_semver(version, expected_next):
    computed = calver_by_date(version)
    assert computed == expected_next