示例#1
0
文件: test_actions.py 项目: ulwlu/pdm
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()
示例#2
0
文件: test_actions.py 项目: ulwlu/pdm
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