Skip to content

Commit 2c2ff9e

Browse files
committed
test: add one more test
1 parent 0427182 commit 2c2ff9e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/pypi/select_whl/select_whl_tests.bzl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,27 @@ def _test_multiple_musllinux(env):
413413

414414
_tests.append(_test_multiple_musllinux)
415415

416+
def _test_multiple_musllinux_exact_params(env):
417+
got = _select_whl(
418+
whls = [
419+
"pkg-0.0.1-py3-none-musllinux_1_2_x86_64.whl",
420+
"pkg-0.0.1-py3-none-musllinux_1_1_x86_64.whl",
421+
],
422+
platforms = ["musllinux_1_2_x86_64", "musllinux_1_1_x86_64"],
423+
whl_abi_tags = ["none"],
424+
python_version = "3.12",
425+
limit = 2,
426+
)
427+
_match(
428+
env,
429+
got,
430+
# select the one with the lowest version, because of the input to the function
431+
"pkg-0.0.1-py3-none-musllinux_1_2_x86_64.whl",
432+
"pkg-0.0.1-py3-none-musllinux_1_1_x86_64.whl",
433+
)
434+
435+
_tests.append(_test_multiple_musllinux_exact_params)
436+
416437
def _test_android(env):
417438
got = _select_whl(
418439
whls = [

0 commit comments

Comments
 (0)