mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
tests: fix tests with httpbin 0.10.0
The latest httpbin changes the format of JSON response. For example: ``` { "authenticated": true, "user": "username" } ```
This commit is contained in:
parent
598bb94135
commit
07cddd9bd6
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ async def test_regex_with_tokenBasic(get_version, httpbin):
|
|||
"source": "regex",
|
||||
"url": httpbin.url + "/basic-auth/username/superpassword",
|
||||
"httptoken": "Basic dXNlcm5hbWU6c3VwZXJwYXNzd29yZA==",
|
||||
"regex": r'"user":"([a-w]+)"',
|
||||
"regex": r'"user":\s*"([a-w]+)"',
|
||||
}) == "username"
|
||||
|
||||
async def test_regex_with_tokenBearer(get_version, httpbin):
|
||||
|
@ -72,7 +72,7 @@ async def test_regex_with_tokenBearer(get_version, httpbin):
|
|||
"source": "regex",
|
||||
"url": httpbin.url + "/bearer",
|
||||
"httptoken": "Bearer username:password",
|
||||
"regex": r'"token":"([a-w]+):.*"',
|
||||
"regex": r'"token":\s*"([a-w]+):.*"',
|
||||
}) == "username"
|
||||
|
||||
async def test_regex_no_verify_ssl(get_version, httpbin_secure):
|
||||
|
|
Loading…
Add table
Reference in a new issue