mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-01-31 18:41:32 +00:00
Skip github tests if NVCHECKER_GITHUB_TOKEN not present
This commit is contained in:
parent
03765db683
commit
b8987edaff
@ -1,6 +1,10 @@
|
||||
import os
|
||||
import pytest
|
||||
from tests.helper import ExternalVersionTestCase
|
||||
|
||||
|
||||
@pytest.mark.skipif("NVCHECKER_GITHUB_TOKEN" not in os.environ,
|
||||
reason="requires NVCHECKER_GITHUB_TOKEN, or it fails too much")
|
||||
class GitHubTest(ExternalVersionTestCase):
|
||||
def test_github(self):
|
||||
self.assertEqual(self.sync_get_version("example", {"github": "harry-sanabria/ReleaseTestRepo"}), "20140122")
|
||||
|
Loading…
Reference in New Issue
Block a user