Chih-Hsuan Yen
|
4ca61ba11a
|
tests: fix for pytest-asyncio 0.23
|
2023-12-09 20:38:00 +08:00 |
|
Chih-Hsuan Yen
|
07cddd9bd6
|
tests: fix tests with httpbin 0.10.0
The latest httpbin changes the format of JSON response. For example:
```
{
"authenticated": true,
"user": "username"
}
```
|
2023-08-22 18:44:51 +08:00 |
|
lilydjwg
|
f3be1c585f
|
regex: make sure we don't have more than one group in the regex
|
2021-11-06 10:44:10 +08:00 |
|
Yichao Yu
|
c43d4e900f
|
Support HTTP POST request in the htmlparser and regex source
Example:
source = "regex"
regex = "spcm_linux_libs_v[0-9a-zA-Z]*"
url = "https://spectrum-instrumentation.com/spcm_downloads_downloads_ajax"
post_data = "series%5B%5D=273&families%5B%5D=475"
|
2021-09-07 00:40:23 -04:00 |
|
Chih-Hsuan Yen
|
9acae25c0f
|
regex: make sure regex fails if nothing is found
This is a regression since 2019 [1].
Before that commit, max() raises ValuError if re.findall returns an
empty list. After that commit, regex fails silently if nothing is found.
[1] 7897317294 (diff-fd40f1295f9ddece86df8d2c385ddb02bd4e2a10cd20bd9a95306d3d35a9b601)
|
2021-08-31 20:07:06 +08:00 |
|
lilydjwg
|
ffaca8c949
|
option to not verify HTTPS certificate
fixes #190.
|
2021-06-23 16:08:47 +08:00 |
|
Maud LAURENT
|
9deb55806d
|
Add optional token for regex and httpheader. Add htmlparser source (#182)
add an httptoken option; add htmlparser with xpath source
Co-authored-by: Maud LAURENT <maud.laurent@eurecia.com>
Co-authored-by: lilydjwg <lilydjwg@gmail.com>
|
2021-06-11 16:18:39 +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
|
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 |
|
Chih-Hsuan Yen
|
ab1ecc231d
|
Raise exceptions on all warnings and errors in tests
|
2019-03-07 16:25:54 +08:00 |
|
lilydjwg
|
5af558d214
|
tests: example.net certificate has expired, use http instead
|
2018-11-29 13:31:08 +08:00 |
|
Chih-Hsuan Yen
|
1d16726c90
|
Add missing_ok , which suppresses no-result warnings
|
2018-09-21 12:17:21 +08:00 |
|
lilydjwg
|
ded2bcd8c5
|
tests: httpbin seems to be overloaded, disabled temporarily
|
2018-05-08 19:27:45 +08:00 |
|
Felix Yan
|
84df2716b5
|
AsyncIO rewrite
|
2017-07-06 12:24:45 +08:00 |
|
lilydjwg
|
8e2be647e0
|
add license declaration to each file
|
2017-02-28 15:27:24 +08:00 |
|
Felix Yan
|
7595011cbb
|
Add a testcase for Regex
|
2015-11-04 23:43:35 +08:00 |
|