mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
Merge remote-tracking branch 'origin/pr/22'
This commit is contained in:
commit
b047840c04
5 changed files with 34 additions and 0 deletions
10
tests/test_cmd.py
Normal file
10
tests/test_cmd.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from tornado.ioloop import IOLoop
|
||||
from tests.helper import ExternalVersionTestCase
|
||||
|
||||
|
||||
class CMDTest(ExternalVersionTestCase):
|
||||
def get_new_ioloop(self):
|
||||
return IOLoop.instance()
|
||||
|
||||
def test_cmd(self):
|
||||
self.assertEqual(self.sync_get_version("example", {"cmd": "echo Meow"}), "Meow")
|
6
tests/test_cpan.py
Normal file
6
tests/test_cpan.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from tests.helper import ExternalVersionTestCase
|
||||
|
||||
|
||||
class CPANTest(ExternalVersionTestCase):
|
||||
def test_cpan(self):
|
||||
self.assertEqual(self.sync_get_version("POE-Component-Server-HTTPServer", {"cpan": None}), "0.9.2")
|
6
tests/test_gems.py
Normal file
6
tests/test_gems.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from tests.helper import ExternalVersionTestCase
|
||||
|
||||
|
||||
class RubyGemsTest(ExternalVersionTestCase):
|
||||
def test_gems(self):
|
||||
self.assertEqual(self.sync_get_version("example", {"gems": None}), "1.0.2")
|
6
tests/test_hackage.py
Normal file
6
tests/test_hackage.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from tests.helper import ExternalVersionTestCase
|
||||
|
||||
|
||||
class HackageTest(ExternalVersionTestCase):
|
||||
def test_hackage(self):
|
||||
self.assertEqual(self.sync_get_version("sessions", {"hackage": None}), "2008.7.18")
|
6
tests/test_pypi.py
Normal file
6
tests/test_pypi.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from tests.helper import ExternalVersionTestCase
|
||||
|
||||
|
||||
class PyPITest(ExternalVersionTestCase):
|
||||
def test_pypi(self):
|
||||
self.assertEqual(self.sync_get_version("example", {"pypi": None}), "0.1.0")
|
Loading…
Add table
Reference in a new issue