mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
tests: gitlab-test has updated, let's check loosely
This commit is contained in:
parent
3fd661ef74
commit
ac7ed64118
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,10 @@ from tests.helper import ExternalVersionTestCase
|
|||
reason="requires NVCHECKER_GITLAB_TOKEN_GITLAB_COM")
|
||||
class GitLabTest(ExternalVersionTestCase):
|
||||
def test_gitlab(self):
|
||||
self.assertEqual(self.sync_get_version("example", {"gitlab": "gitlab-org/gitlab-test"}), "20150825")
|
||||
ver = self.sync_get_version("example",
|
||||
{"gitlab": "gitlab-org/gitlab-test"})
|
||||
self.assertEqual(len(ver), 8)
|
||||
self.assertTrue(ver.isdigit())
|
||||
|
||||
def test_gitlab_max_tag(self):
|
||||
self.assertEqual(self.sync_get_version("example", {"gitlab": "gitlab-org/gitlab-test", "use_max_tag": 1}), "v1.1.0")
|
||||
|
|
Loading…
Add table
Reference in a new issue