waft.framework_unit_tests.test_warp_client.test_install_managers module

waft.framework_unit_tests.test_warp_client.test_install_managers.mock_local_client_installer_directory()

Redirect the default local client installer directory to a temporary path

waft.framework_unit_tests.test_warp_client.test_install_managers.setup_mock_installer_files(installer_files: list[str])

Create empty file at given location for testing purposes

waft.framework_unit_tests.test_warp_client.test_install_managers.test_install_manager_build_dirname(waft: Waft, node_platform, node_arch, node_version, dirname)

Test that build dirname is correctly returned based on node information

waft.framework_unit_tests.test_warp_client.test_install_managers.test_locate_installer_by_node(waft: Waft, node_platform, node_arch, installer_version, mock_files, expected_output)

Test locating files by information and version number from dummy installer files

Args: waft: Waft fixture node_platform: Platform value for mock node to create node_arch: Architecture to set for mock node installer_version: String of installer version to return for node mock_files: Files to create empty versions of for testing purposes expected_output: Output that is expected, either string of installer path to return or exception that will be raised

from locate_installer