Skip to content

Commit 9cfadc7

Browse files
committed
additional spec parsing checks
1 parent 878aa35 commit 9cfadc7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

minimum_versions/tests/test_environments.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,14 @@ class TestPixiEnvironment:
215215
],
216216
id="tight_pin",
217217
),
218+
pytest.param(
219+
"d",
220+
"1.9.1",
221+
Spec("d", Version("1.9.1")),
222+
["package should be pinned to a minor version (got 1.9.1)"],
223+
id="patch_pin",
224+
),
225+
pytest.param("e", "*", Spec("e", None), [], id="unpinned"),
218226
),
219227
)
220228
def test_parse_spec(self, name, version_text, expected_spec, expected_warnings):

0 commit comments

Comments
 (0)