Beispiel #1
0
def test_install(mkp_bytes):
    packaging.install(mkp_bytes)

    assert packaging._package_exists("aaa") is True
    package_info = _read_package_info("aaa")
    assert package_info["version"] == "1.0"
    assert package_info["files"]["checks"] == ["aaa"]
    assert cmk.utils.paths.local_checks_dir.joinpath("aaa").exists()
Beispiel #2
0
def test_install(mkp_bytes, build_setup_search_index):
    packaging.install(mkp_bytes)
    build_setup_search_index.assert_called_once()

    assert packaging._package_exists("aaa") is True
    package_info = _read_package_info("aaa")
    assert package_info["version"] == "1.0"
    assert package_info["files"]["checks"] == ["aaa"]
    assert cmk.utils.paths.local_checks_dir.joinpath("aaa").exists()