ewoks.tests.requirements.test_uv#

Tests specific to the uv package manager.

Functions

no_uv_environment(monkeypatch, tmp_path)

Python environment that was not created by uv and is not a uv project.

test_default_command()

test_files_from_lock_only(monkeypatch, tmp_path)

A lock file without pyproject.toml is not reused: no files are stored.

test_files_from_project(monkeypatch, tmp_path)

The files of the uv project are reused.

test_is_active_uv_environment(...)

test_is_active_uv_project(no_uv_environment, ...)

The environment is inside a uv project.

test_is_active_uv_run(no_uv_environment, ...)

uv run provides the uv executable through the environment.

test_is_not_active(no_uv_environment)

test_project_environment(uv_environment)

The environment of a uv project is the .venv directory.

test_version_not_available()

uv_environment(tmp_path)

Environment of a uv project.