Merge pull request #235 from yan12125/fix-tests

Fix tests
This commit is contained in:
依云 2023-08-22 20:48:46 +08:00 committed by GitHub
commit 587eeafd65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -26,7 +26,7 @@ async def test_android_package_channel(get_version):
"android_sdk": "ndk;",
"repo": "package",
"channel": "beta,dev,canary",
}) == "26.0.10404224"
}) == "26.0.10636728"
async def test_android_list(get_version):
assert await get_version("android-sdk-cmake-older", {

View file

@ -33,6 +33,7 @@ async def test_apt_strip_release(get_version):
"strip_release": 1,
}) == "0.1.7"
@pytest.mark.skip
@flaky(max_runs=10)
async def test_apt_deepin(get_version):
assert await get_version("sigrok-firmware-fx2lafw", {

View file

@ -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):