From e665fd611864d1b4de4bd09b917ca31c451d2276 Mon Sep 17 00:00:00 2001 From: Olivier Lacroix Date: Thu, 20 Oct 2022 13:38:48 +1100 Subject: [PATCH] Add test --- tests/test-flit/pyproject.toml | 1 + tests/test_conda_lock.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tests/test-flit/pyproject.toml b/tests/test-flit/pyproject.toml index a377a6e96..a2c23a4eb 100644 --- a/tests/test-flit/pyproject.toml +++ b/tests/test-flit/pyproject.toml @@ -25,3 +25,4 @@ channels = [ [tool.conda-lock.dependencies] sqlite = "<3.34" certifi = ">=2019.11.28" +toml = {source = "pypi"} \ No newline at end of file diff --git a/tests/test_conda_lock.py b/tests/test_conda_lock.py index 823db98af..33f3269d0 100644 --- a/tests/test_conda_lock.py +++ b/tests/test_conda_lock.py @@ -442,6 +442,8 @@ def test_parse_flit(flit_pyproject_toml: Path): assert specs["pytest"].optional is True assert specs["pytest"].category == "dev" + assert specs["toml"].manager == "pip" + assert res.channels == [Channel.from_string("defaults")]