def test_build_distributions(tmp_path, core): project = Project() project.core = core actions.do_build(project, dest=tmp_path.as_posix()) wheel = Wheel(next(tmp_path.glob("*.whl")).as_posix()) assert wheel.name == "pdm" tarball = next(tmp_path.glob("*.tar.gz")) assert tarball.exists()
def test_list_packages(capsys, core): project = Project() project.core = core actions.do_list(project) out, _ = capsys.readouterr() assert "pdm" in out assert "tomlkit" in out assert "pip" in out