def test_install_value_error(ipfs_mock, tp_path, mocker): mocker.spy(ethpm, "install_package") with pytest.raises(ValueError): cli_ethpm._install(tp_path, ERC1319_URI, "foobar")
def test_install(ipfs_mock, tp_path, mocker): mocker.spy(ethpm, "install_package") cli_ethpm._install(tp_path, ERC1319_URI, "false") assert ethpm.install_package.call_count == 1 assert tp_path.joinpath("contracts/access").exists()