# MIT licensed # Copyright (c) 2013-2020 lilydjwg , et al. import pytest pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] async def test_bitbucket(get_version): assert await get_version("example", { "source": "bitbucket", "bitbucket": "prawee/git-tag", }) == "20150303" async def test_bitbucket_max_tag(get_version): assert await get_version("example", { "source": "bitbucket", "bitbucket": "prawee/git-tag", "use_max_tag": True, }) == "1.7.0" async def test_bitbucket_max_tag_with_ignored(get_version): assert await get_version("example", { "source": "bitbucket", "bitbucket": "prawee/git-tag", "use_max_tag": True, "ignored": "1.6.0 1.7.0", }) == "v1.5"