Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions conda-solver-tests/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1292,3 +1292,64 @@ tests:
link_precs:
- channel-4/${{ arch }}::jinja2-2.10-py36_0
- channel-4/${{ arch }}::flask-1.0.2-py36_1

- name: test_update_prune_1
id: B036
provenance: tests/core/test_solve.py::test_update_prune_1
kind: solve
input:
channels: channel-1
specs_to_add: python=2.7.3
prefix:
- channel-1/${{ arch }}::openssl-1.0.1c-0
- channel-1/${{ arch }}::readline-6.2-0
- channel-1/${{ arch }}::sqlite-3.7.13-0
- channel-1/${{ arch }}::system-5.8-1
- channel-1/${{ arch }}::tk-8.5.13-0
- channel-1/${{ arch }}::zlib-1.2.7-0
- channel-1/${{ arch }}::python-2.7.3-7
- channel-1/${{ arch }}::numpy-1.7.1-py27_0
history_specs:
- numpy
- python=2.7.3
prune: true
output:
final_state:
- channel-1/${{ arch }}::openssl-1.0.1c-0
- channel-1/${{ arch }}::readline-6.2-0
- channel-1/${{ arch }}::sqlite-3.7.13-0
- channel-1/${{ arch }}::system-5.8-1
- channel-1/${{ arch }}::tk-8.5.13-0
- channel-1/${{ arch }}::zlib-1.2.7-0
- channel-1/${{ arch }}::python-2.7.3-7

- name: test_update_prune_4
id: B037
provenance: tests/core/test_solve.py::test_update_prune_4
kind: solve
input:
channels: channel-1
specs_to_add: python=2.7.3
prefix:
- channel-1/${{ arch }}::openssl-1.0.1c-0
- channel-1/${{ arch }}::readline-6.2-0
- channel-1/${{ arch }}::sqlite-3.7.13-0
- channel-1/${{ arch }}::system-5.8-1
- channel-1/${{ arch }}::tk-8.5.13-0
- channel-1/${{ arch }}::zlib-1.2.7-0
- channel-1/${{ arch }}::python-2.7.3-7
- channel-1/${{ arch }}::numpy-1.7.1-py27_0
history_specs:
- numpy
- python=2.7.3
prune: true
update_modifier: freeze_installed
output:
final_state:
- channel-1/${{ arch }}::openssl-1.0.1c-0
- channel-1/${{ arch }}::readline-6.2-0
- channel-1/${{ arch }}::sqlite-3.7.13-0
- channel-1/${{ arch }}::system-5.8-1
- channel-1/${{ arch }}::tk-8.5.13-0
- channel-1/${{ arch }}::zlib-1.2.7-0
- channel-1/${{ arch }}::python-2.7.3-7
2 changes: 1 addition & 1 deletion pytest_conda_solvers/base_tests/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def get_env_pair(raw_solver_input, name, join_str=None):
)
if val is not None
}
bool_flags = ("ignore_pinned",)
bool_flags = ("ignore_pinned", "prune")
enum_flags = ("update_modifier", "deps_modifier")
flags = {
flag: v
Expand Down
1 change: 1 addition & 0 deletions pytest_conda_solvers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class TestInput(
history_specs: str | list[str] | None = None
solution_records: PrefixRecord | list[PrefixRecord] | None = None
add_pip: bool = False
prune: bool | None = None
ignore_pinned: bool | None = None
pinned_packages: str | list[str] | None = None
aggressive_update_packages: str | list[str] | None = None
Expand Down
Loading