Chih-Hsuan Yen
851e141f3d
Use pytest-httpbin and add a test for default User-Agent
2019-07-06 13:39:59 +08:00
lilydjwg
93d1ca16db
update tests
2019-07-04 16:47:33 +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
5437100f08
fix github test
2019-03-06 22:45:23 +08:00
lilydjwg
ca68c44201
github: try as few API calls as possible
2019-03-06 22:37:18 +08:00
lilydjwg
5b47391af0
fix gitlab test
2019-03-06 22:03:35 +08:00
lilydjwg
de381bf26d
fix github test and update the doc
2019-03-06 22:01:07 +08:00
lilydjwg
7897317294
add the "list options" feature
...
closes #83
old options will be removed in #99
2019-03-06 21:51:04 +08:00
Jingbei Li
620c7a89cd
added path to github source
2019-01-28 19:36:41 +08:00
Bruce Zhang
2e55a7db60
pypi: use_pre_release support
...
Signed-off-by: Bruce Zhang <zttt183525594@gmail.com>
2019-01-01 22:05:16 +08:00
lilydjwg
eb75dc8305
Revert "tests: disable bitbucket tests because Travis-CI chooses the obsolete TLS 1.0 protocol"
...
This reverts commit 1da0e785db
.
Trying other methods...
2018-12-05 16:38:45 +08:00
lilydjwg
1da0e785db
tests: disable bitbucket tests because Travis-CI chooses the obsolete TLS 1.0 protocol
2018-12-05 16:34:57 +08:00
lilydjwg
5af558d214
tests: example.net certificate has expired, use http instead
2018-11-29 13:31:08 +08:00
lilydjwg
d0ee359209
update tests and bump version to dev
2018-11-19 15:16:29 +08:00
lilydjwg
64703e8b2d
tests: add test_cache
2018-10-10 17:35:18 +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
lilydjwg
903b414183
cache result during a run
...
so that different entries can refer to a same software without much overhead.
This is needed because entries may be generated, and only nvchecker can
tell if two entries are expecting the same result because the name may
or may not be relevant.
Closes #81 .
2018-10-10 17:03:20 +08:00
Jingbei Li
ddbe30db8c
added use_last_modified for aur
2018-09-30 17:42:42 +08:00
lilydjwg
60afa62d89
Revert "cache get_version results".
...
Some sources will use the name.
This reverts commits aabf9f5037
and f75a156d46
.
2018-09-22 13:36:13 +08:00
lilydjwg
aabf9f5037
cache get_version results
...
closes #81
2018-09-22 13:12:25 +08:00
Chih-Hsuan Yen
e6d0449bc4
Fix tests
2018-09-21 12:18:21 +08:00
Chih-Hsuan Yen
1d16726c90
Add missing_ok
, which suppresses no-result warnings
2018-09-21 12:17:21 +08:00
Chih-Hsuan Yen
6afa9a551a
Fix test_anitya
2018-07-22 21:08:00 +08:00
Xuanwo
c9f2fcdb62
tests: Add local test for over limit check
...
Signed-off-by: Xuanwo <xuanwo.cn@gmail.com>
2018-06-10 21:24:33 +08:00
lilydjwg
c1c531d707
debian API becomes flaky recently
2018-05-15 22:37:39 +08:00
lilydjwg
a31470df0b
tests: aur: try harder
2018-05-08 19:59:57 +08:00
lilydjwg
ddfc569ba3
tests: remove more f-strings
2018-05-08 19:44:48 +08:00
lilydjwg
960f76e333
tests: fix test_proxy
2018-05-08 19:41:11 +08:00
lilydjwg
ded2bcd8c5
tests: httpbin seems to be overloaded, disabled temporarily
2018-05-08 19:27:45 +08:00
lilydjwg
9273f30036
remove usage of f-strings, Python 3.5 is still supported
2018-05-08 19:27:28 +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
6c15ee8517
expose HTTPError, and raise it if status >= 400 for aiohttp
2018-05-08 18:34:32 +08:00
lilydjwg
6fcf5869ad
add test_keyfile
2018-05-08 18:18:10 +08:00
lilydjwg
2e4f2bc424
test: test github use_max_tag with paging and include_tags_pattern
2018-05-04 11:46:40 +08:00
lilydjwg
a8f8a41c46
update tests
2018-04-14 00:01:57 +08:00
lilydjwg
ac1e248aac
update tests
2018-04-09 14:07:19 +08:00
lilydjwg
b24f4ae5fe
try five times for AUR tests
2018-02-07 22:05:14 +08:00
lilydjwg
1be7b57ea0
update ubuntupkg test
2018-02-07 21:56:45 +08:00
lilydjwg
ee1b8267d0
fix github tests
2018-02-07 21:42:10 +08:00
lilydjwg
c150b77b61
github: don't use master as default branch
2018-02-07 18:54:09 +08:00
lilydjwg
7133ffc1a0
[test] yield_fixture is deprecated
2018-01-23 15:39:59 +08:00
lilydjwg
75873b5281
update test_aur
2017-11-05 16:41:06 +08:00
Yen Chi Hsuan
5df11f7b1a
Improve android_sdk version extractor
...
* Add README
* Update author info
* Cache repo manifests
2017-11-05 01:29:12 +08:00
Yen Chi Hsuan
bb3fa58481
Add tests for Android SDK packages
2017-10-29 22:57:59 +08:00