Commit Graph

113 Commits

Author SHA1 Message Date
lilydjwg
09f65b2dc3 add a test for cmd with % 2020-02-28 16:02:16 +08:00
Chih-Hsuan Yen
d9daa17a50
Fix Debian & Ubuntu tests 2019-12-07 11:23:44 +08:00
Chih-Hsuan Yen
b6d26e68fb
Fix gitlab tests
The repo https://gitlab.com/gitlab-org/gitlab-test gets a new tag
v1.1.1, which is for testing a new GitLab feature [1][2].

[1] https://gitlab.com/gitlab-org/gitlab/merge_requests/17773
[2] https://gitlab.com/gitlab-org/gitlab-test/merge_requests/40
2019-11-29 22:42:08 +08:00
Chih-Hsuan Yen
7055ad555e
Update for upcoming ipw2100-fw 1.3-10
It's rebuilt during the last [core] mass rebuilds [1].

[1] https://lists.archlinux.org/pipermail/arch-dev-public/2019-November/029721.html
2019-11-18 16:58:44 +08:00
Mario Rodas
d10f3fc5e1
tests: add needs_net marker to ubuntupkg tests 2019-11-04 21:00:00 -05:00
lilydjwg
2fca9e025c add repology source, close #115 2019-10-29 23:40:24 +08:00
lilydjwg
be7e54404e archpkg: support provides 2019-10-29 00:19:07 +08:00
lilydjwg
7e44dd5767 travis: don't run test_aur 2019-10-15 18:59: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
1e1f431f9b fix test_regex 2019-07-08 11:40:08 +08:00
lilydjwg
ed37892c87 tests: test default user agent in test_regex 2019-07-06 14:23:00 +08:00
lilydjwg
8b0186bd25 Revert "Use pytest-httpbin and add a test for default User-Agent"
This reverts commit 851e141f3d.

pytest-httpbin doesn't work with nightly. Also it brings in too many
dependencies.
2019-07-06 14:20:43 +08:00
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