def test_version_bump_invalid_type(): v = Version() with raises(ValueError, match="Invalid bump_type 'patch'"): v.bump('patch')
def test_version_bump_invalid_type_name(): v = Version() with raises(ValueError, match="Unknown bump_type 'pico'"): v.bump('pico')
def test_version_bump_invalid_type(): v = Version() with expect.raises(ValueError, "Invalid bump_type 'patch' for version (0, 1, 0)"): v.bump('patch')