mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
Ignore certain tags while sorting. This option must be used together with use_max_tag. This can be useful to avoid some known badly versioned tags, so the newer tags won't be "overriden" by the old broken ones.
12 lines
595 B
Python
12 lines
595 B
Python
from tests.helper import ExternalVersionTestCase
|
|
|
|
|
|
class BitBucketTest(ExternalVersionTestCase):
|
|
def test_bitbucket(self):
|
|
self.assertEqual(self.sync_get_version("example", {"bitbucket": "prawee/git-tag"}), "20150303")
|
|
|
|
def test_bitbucket_max_tag(self):
|
|
self.assertEqual(self.sync_get_version("example", {"bitbucket": "prawee/git-tag", "use_max_tag": 1}), "1.7.0")
|
|
|
|
def test_bitbucket_max_tag_with_ignored_tags(self):
|
|
self.assertEqual(self.sync_get_version("example", {"bitbucket": "prawee/git-tag", "use_max_tag": 1, "ignored_tags": "1.6.0 1.7.0"}), "v1.5")
|