Skip to content

Commit 5ccac11

Browse files
committed
Add tests for compatible_tags()
1 parent 2495a36 commit 5ccac11

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/test_tags.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,3 +784,25 @@ def test_generic_tags_defaults(monkeypatch):
784784
result = list(tags.generic_tags(interpreter="sillywalk", abis=["none"]))
785785
assert result == [tags.Tag("sillywalk", "none", "plat")]
786786

787+
788+
def test_compatible_tags():
789+
result = list(tags.compatible_tags((3, 3), "cp33", ["plat1", "plat2"]))
790+
assert result == [
791+
tags.Tag("py33", "none", "plat1"),
792+
tags.Tag("py33", "none", "plat2"),
793+
tags.Tag("py3", "none", "plat1"),
794+
tags.Tag("py3", "none", "plat2"),
795+
tags.Tag("py32", "none", "plat1"),
796+
tags.Tag("py32", "none", "plat2"),
797+
tags.Tag("py31", "none", "plat1"),
798+
tags.Tag("py31", "none", "plat2"),
799+
tags.Tag("py30", "none", "plat1"),
800+
tags.Tag("py30", "none", "plat2"),
801+
tags.Tag("cp33", "none", "any"),
802+
tags.Tag("py33", "none", "any"),
803+
tags.Tag("py3", "none", "any"),
804+
tags.Tag("py32", "none", "any"),
805+
tags.Tag("py31", "none", "any"),
806+
tags.Tag("py30", "none", "any"),
807+
]
808+

0 commit comments

Comments
 (0)