solver_helpers
Helpers for testing the solver.
Classes
Helper environment object. |
|
Tests for |
Functions
|
Get the index data of the |
|
|
|
Transforms package container in package string set. |
|
Transforms package container into a dictionary. |
|
- index_packages(num)
Get the index data of the
helpers.get_index_r_*
helpers.
- package_string(record)
- package_string_set(packages)
Transforms package container in package string set.
- package_dict(packages)
Transforms package container into a dictionary.
- class SimpleEnvironment(path, solver_class, subdirs=context.subdirs)
Helper environment object.
- property _channel_packages
Helper that unfolds the
repo_packages
into a dictionary.
- REPO_DATA_KEYS = ('build', 'build_number', 'depends', 'license', 'md5', 'name', 'sha256', 'size', 'subdir',...
- solver(add, remove)
Writes
repo_packages
to the disk and creates a solver instance.
- solver_transaction(add=(), remove=(), as_specs=False)
- install(*specs, as_specs=False)
- remove(*specs, as_specs=False)
- _package_data(record)
Turn record into data, to be written in the JSON environment/repo files.
- _write_installed_packages()
- _write_repo_packages(channel_name, packages)
Write packages to the channel path.
- empty_prefix()
- temp_simple_env(solver_class=Solver) SimpleEnvironment
- class SolverTests
Tests for
conda.core.solve.Solver
implementations.- abstract property solver_class: type[conda.core.solve.Solver]
Class under test.
- property tests_to_skip
- skip_tests(request)
- env()
- find_package_in_list(packages, **kwargs)
- find_package(**kwargs)
- assert_unsatisfiable(exc_info, entries)
Helper to assert that a
conda.exceptions.UnsatisfiableError
instance as a the specified set of unsatisfiable specifications.
- test_empty(env)
- test_iopro_mkl(env)
- test_iopro_nomkl(env)
- test_mkl(env)
- test_accelerate(env)
- test_scipy_mkl(env)
- test_anaconda_nomkl(env)
- test_pseudo_boolean(env)
- test_unsat_from_r1(env)
- test_unsat_simple(env)
- test_get_dists(env)
- test_unsat_shortest_chain_1(env)
- test_unsat_shortest_chain_2(env)
- test_unsat_shortest_chain_3(env)
- test_unsat_shortest_chain_4(env)
- test_unsat_chain(env)
- test_unsat_any_two_not_three(env)
- test_unsat_expand_single(env)
- test_unsat_missing_dep(env)
- test_nonexistent(env)
- test_timestamps_and_deps(env)
- test_nonexistent_deps(env)
- test_install_package_with_feature(env)
- test_unintentional_feature_downgrade(env)
- test_circular_dependencies(env)
- test_irrational_version(env)
- test_no_features(env)
- test_channel_priority_1(monkeypatch, env)
- test_unsat_channel_priority(monkeypatch, env)
- test_remove(env)
- test_surplus_features_1(env)
- test_surplus_features_2(env)
- test_get_reduced_index_broadening_with_unsatisfiable_early_dep(env)
- test_get_reduced_index_broadening_preferred_solution(env)
- test_arch_preferred_over_noarch_when_otherwise_equal(env)
- test_noarch_preferred_over_arch_when_version_greater(env)
- test_noarch_preferred_over_arch_when_version_greater_dep(env)
- test_noarch_preferred_over_arch_when_build_greater(env)
- test_noarch_preferred_over_arch_when_build_greater_dep(env)