Skip to content

Commit

Permalink
>99% coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Feb 26, 2025
1 parent 45518db commit 5ad9e1a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,12 @@ def test_missing_env(tmp_path: Path) -> None:
conda_lock_path=tmp_path / "conda-lock.yml",
environment="nonexistent",
)


def test_no_pip_but_pypi_packages(lock_file_pypi: LockFile) -> None:
"""Test the convert function with a lock file has pip packages but no pip."""
with pytest.raises(
ValueError,
match="PyPI packages are present but no pip package found in conda packages.",
):
_convert_env_to_conda_lock(lock_file_pypi, "default")

0 comments on commit 5ad9e1a

Please sign in to comment.