mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
Skip github tests if NVCHECKER_GITHUB_TOKEN not present
This commit is contained in:
parent
03765db683
commit
b8987edaff
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
||||||
|
import os
|
||||||
|
import pytest
|
||||||
from tests.helper import ExternalVersionTestCase
|
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):
|
class GitHubTest(ExternalVersionTestCase):
|
||||||
def test_github(self):
|
def test_github(self):
|
||||||
self.assertEqual(self.sync_get_version("example", {"github": "harry-sanabria/ReleaseTestRepo"}), "20140122")
|
self.assertEqual(self.sync_get_version("example", {"github": "harry-sanabria/ReleaseTestRepo"}), "20140122")
|
||||||
|
|
Loading…
Add table
Reference in a new issue