Skip to content

Commit 99672dd

Browse files
committed
check pypi dependencies
1 parent 2555235 commit 99672dd

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

minimum_versions/tests/test_environments.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,42 @@ def test_parse_spec_error(self, version_text):
300300
[("a", [])],
301301
id="missing-features",
302302
),
303+
pytest.param(
304+
textwrap.dedent(
305+
"""\
306+
[dependencies]
307+
a = "1.0.*"
308+
309+
[pypi-dependencies]
310+
b = "3.2.*"
311+
312+
[environments]
313+
env1 = { features = [] }
314+
""".rstrip()
315+
),
316+
"pixi.toml",
317+
[Spec("a", Version("1.0"))],
318+
[("feature:default", ["Ignored PyPI dependencies."]), ("a", [])],
319+
id="pypi_dependencies-default",
320+
),
321+
pytest.param(
322+
textwrap.dedent(
323+
"""\
324+
[dependencies]
325+
a = "1.0.*"
326+
327+
[feature.feat1.pypi-dependencies]
328+
b = "3.2.*"
329+
330+
[environments]
331+
env1 = { features = ["feat1"] }
332+
""".rstrip()
333+
),
334+
"pixi.toml",
335+
[Spec("a", Version("1.0"))],
336+
[("feature:feat1", ["Ignored PyPI dependencies."]), ("a", [])],
337+
id="pypi_dependencies-feat1",
338+
),
303339
pytest.param(
304340
textwrap.dedent(
305341
"""\

0 commit comments

Comments
 (0)