Update tests

This commit is contained in:
Chih-Hsuan Yen 2021-05-06 12:44:55 +08:00
parent d7c553ae94
commit 134a6885f1
No known key found for this signature in database
GPG key ID: F98EF2A7B0A098AE
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()