mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
11 lines
343 B
Python
11 lines
343 B
Python
from nvchecker.get_version import get_version
|
|
import tornado.testing
|
|
|
|
|
|
class ExternalVersionTestCase(tornado.testing.AsyncTestCase):
|
|
def sync_get_version(self, name, config):
|
|
def get_version_callback(name, version):
|
|
self.stop(version)
|
|
|
|
get_version(name, config, get_version_callback)
|
|
return self.wait()
|