Merge pull request #181 from yan12125/update-tests

Update tests
This commit is contained in:
依云 2021-05-06 13:07:47 +08:00 committed by GitHub
commit 9d2d47ed15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ async def test_android_package(get_version):
"source": "android_sdk",
"android_sdk": "cmake;",
"repo": "package",
}) == "3.6.4111459"
}) == "3.18.1"
async def test_android_package_channel(get_version):
@ -26,4 +26,4 @@ async def test_android_package_channel(get_version):
"android_sdk": "cmake;",
"repo": "package",
"channel": "beta,dev,canary",
}) == "3.18.1"
}) == None

View File

@ -9,4 +9,4 @@ async def test_anitya(get_version):
assert await get_version("shutter", {
"source": "anitya",
"anitya": "fedora/shutter",
}) == "0.94.3"
}) == "0.95"

View File

@ -16,7 +16,7 @@ async def test_gitlab_blm(get_version):
# repo with a custom main branch
ver = await get_version("example", {
"source": "gitlab",
"gitlab": "asus-linux/asus-nb-ctrl",
"gitlab": "asus-linux/asusctl",
})
assert len(ver) == 8
assert ver.isdigit()