mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
fix: update tests
This commit is contained in:
parent
5caad5d1a8
commit
8085b7b12a
2 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ async def test_get_version_withtoken(get_version, httpbin):
|
|||
assert await get_version("unifiedremote", {
|
||||
"source": "httpheader",
|
||||
"url": httpbin.url + "/basic-auth/username/superpassword",
|
||||
"httptoken_unifiedremote": "Basic dXNlcm5hbWU6c3VwZXJwYXNzd29yZA==",
|
||||
"httptoken": "Basic dXNlcm5hbWU6c3VwZXJwYXNzd29yZA==",
|
||||
"header": "server",
|
||||
"regex": r'([0-9.]+)*',
|
||||
}) != None
|
|
@ -47,7 +47,7 @@ async def test_regex_with_tokenBasic(get_version, httpbin):
|
|||
assert await get_version("example", {
|
||||
"source": "regex",
|
||||
"url": httpbin.url + "/basic-auth/username/superpassword",
|
||||
"httptoken_example": "Basic dXNlcm5hbWU6c3VwZXJwYXNzd29yZA==",
|
||||
"httptoken": "Basic dXNlcm5hbWU6c3VwZXJwYXNzd29yZA==",
|
||||
"regex": r'"user":"([a-w]+)"',
|
||||
}) == "username"
|
||||
|
||||
|
@ -55,6 +55,6 @@ async def test_regex_with_tokenBearer(get_version, httpbin):
|
|||
assert await get_version("example", {
|
||||
"source": "regex",
|
||||
"url": httpbin.url + "/bearer",
|
||||
"httptoken_example": "Bearer username:password",
|
||||
"httptoken": "Bearer username:password",
|
||||
"regex": r'"token":"([a-w]+):.*"',
|
||||
}) == "username"
|
Loading…
Add table
Reference in a new issue