solver_helpers#

用于测试求解器的助手。

#

SimpleEnvironment

助手环境对象。

SolverTests

针对 conda.core.solve.Solver 实现的测试。

函数#

index_packages(num)

获取 helpers.get_index_r_* 助手的索引数据。

package_string(record)

package_string_set(packages)

将包容器转换为包字符串集合。

package_dict(packages)

将包容器转换为字典。

empty_prefix()

temp_simple_env(→ SimpleEnvironment)

index_packages(num)#

获取 helpers.get_index_r_* 助手的索引数据。

package_string(record)#
package_string_set(packages)#

将包容器转换为包字符串集合。

package_dict(packages)#

将包容器转换为字典。

class SimpleEnvironment(path, solver_class, subdirs=context.subdirs)#

助手环境对象。

property _channel_packages#

助手,用于展开 repo_packages 到字典中。

REPO_DATA_KEYS = ('build', 'build_number', 'depends', 'license', 'md5', 'name', 'sha256', 'size', 'subdir',...#
solver(add, remove)#

repo_packages 写入磁盘并创建一个求解器实例。

solver_transaction(add=(), remove=(), as_specs=False)#
install(*specs, as_specs=False)#
remove(*specs, as_specs=False)#
_package_data(record)#

将记录转换为数据,以便写入 JSON 环境/仓库文件。

_write_installed_packages()#
_write_repo_packages(channel_name, packages)#

将包写入通道路径。

empty_prefix()#
temp_simple_env(solver_class=Solver) SimpleEnvironment#
class SolverTests#

针对 conda.core.solve.Solver 实现的测试。

abstract property solver_class: type[conda.core.solve.Solver]#

被测量的类。

property tests_to_skip#
skip_tests(request)#
env()#
find_package_in_list(packages, **kwargs)#
find_package(**kwargs)#
assert_unsatisfiable(exc_info, entries)#

辅助方法,用于断言 conda.exceptions.UnsatisfiableError 实例具有指定的不满足规范集。

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)#