Commit Graph

28 Commits

Author SHA1 Message Date
lilydjwg ae506ba9cf add a combiner source and the underlying mechanism to wait for other entries' results 2021-06-08 14:55:57 +08:00
lilydjwg 4f3a900505 setup httpclient from configuration options
closes #76
2020-09-28 15:09:51 +08:00
lilydjwg cd1cbfde30 support per source plugin configuration and support different registry for the npm source 2020-09-24 18:27:30 +08:00
lilydjwg 185a7e88a9 use asyncio.Semaphore instead of self-made queue 2020-09-20 22:15:54 +08:00
lilydjwg e228e31b84 final tweak of keyfile 2020-08-20 15:18:43 +08:00
lilydjwg 95150fa8e9 port github source and tests (the last one!)
`include_tags_pattern` and `ignored_tags` removed, see #99
2020-08-20 15:18:28 +08:00
lilydjwg 4887ec66d9 port more tests 2020-08-17 16:21:02 +08:00
lilydjwg 10f6b1561e start porting tests to new version 2020-08-17 15:11:14 +08:00
lilydjwg 14b3863f11 version 2: MVP 2020-08-11 17:43:03 +08:00
lilydjwg 1bcd02aad2 tests: session-scoped ioloop is needed for aiohttp support 2020-07-02 16:10:39 +08:00
lilydjwg cbd7e13867 tornado: construct AsyncHTTPClient each time so that it uses the right ioloop
This is a better fix for #129.
2020-07-02 15:07:19 +08:00
lilydjwg 36c995eef6 tests: set event_loop fixture to be session scoped
fixes https://github.com/lilydjwg/nvchecker/issues/129.
2020-07-02 00:45:55 +08:00
lilydjwg 09f65b2dc3 add a test for cmd with % 2020-02-28 16:02:16 +08:00
lilydjwg 6f48b774ae tests: add a needs_net mark for tests that require Internet access
use pytest-httpbin for test_regex

closes #113
2019-10-15 17:27:34 +08:00
lilydjwg b1856f7426 test: don't raise RuntimeErrors for no-result warnings 2019-05-01 17:26:10 +08:00
lilydjwg cc763205e8 test: don't raise RuntimeError for rate limited logs 2019-04-08 12:15:49 +08:00
Chih-Hsuan Yen 7dab7c3b6a
Get rid of warnings from logging.warn
logging.warn is deprecated [1].

[1] https://docs.python.org/3/library/logging.html#logging.Logger.warning
2019-03-23 23:59:13 +08:00
Chih-Hsuan Yen 2a9b60155b
Re-raise previous exceptions 2019-03-07 16:45:14 +08:00
Chih-Hsuan Yen ab1ecc231d
Raise exceptions on all warnings and errors in tests 2019-03-07 16:25:54 +08:00
lilydjwg e2fb91d3fb tests: fix clear_cache arg 2018-10-10 17:22:02 +08:00
lilydjwg 10e3478b12 fix test_keyfile
keyfile is not part of cache keys so the expectations are wrong.

We don't make it part of cache keys because we don't expect keyfile to
affect the version as long as we can get it.
2018-10-10 17:17:02 +08:00
lilydjwg 26eaef92aa handle deprecated warning, reindent conftest.py 2018-10-10 17:08:28 +08:00
Chih-Hsuan Yen 1d16726c90
Add `missing_ok`, which suppresses no-result warnings 2018-09-21 12:17:21 +08:00
lilydjwg 3da3e356fa github: give an explicit error message when rate limited
also update tests.
2018-05-08 19:15:36 +08:00
lilydjwg 6fcf5869ad add test_keyfile 2018-05-08 18:18:10 +08:00
lilydjwg 7133ffc1a0 [test] yield_fixture is deprecated 2018-01-23 15:39:59 +08:00
lilydjwg 1bb14397ed no need to return name now; we track this on the futures 2017-07-08 15:59:54 +08:00
Felix Yan 84df2716b5 AsyncIO rewrite 2017-07-06 12:24:45 +08:00