mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
commit
697ba410d5
4 changed files with 9 additions and 2 deletions
|
@ -3,8 +3,8 @@ language: python
|
||||||
python:
|
python:
|
||||||
- "3.4"
|
- "3.4"
|
||||||
- "3.5"
|
- "3.5"
|
||||||
install: pip install .
|
install: pip install pytest-runner
|
||||||
script: py.test
|
script: python setup.py ptr
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- ASYNC_TEST_TIMEOUT=20
|
- ASYNC_TEST_TIMEOUT=20
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -11,6 +11,7 @@ setup(
|
||||||
install_requires = ['tornado>=4.1', 'setuptools'],
|
install_requires = ['tornado>=4.1', 'setuptools'],
|
||||||
tests_require=[
|
tests_require=[
|
||||||
'pytest',
|
'pytest',
|
||||||
|
'flaky',
|
||||||
],
|
],
|
||||||
entry_points = {
|
entry_points = {
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
from flaky import flaky
|
||||||
from tests.helper import ExternalVersionTestCase
|
from tests.helper import ExternalVersionTestCase
|
||||||
|
|
||||||
|
|
||||||
class GitCafeTest(ExternalVersionTestCase):
|
class GitCafeTest(ExternalVersionTestCase):
|
||||||
|
@flaky(max_runs=3)
|
||||||
def test_gitcafe(self):
|
def test_gitcafe(self):
|
||||||
self.assertEqual(self.sync_get_version("example", {"gitcafe": "test/test"}), "20120201")
|
self.assertEqual(self.sync_get_version("example", {"gitcafe": "test/test"}), "20120201")
|
||||||
|
|
|
@ -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