如何使用pytest测试从github安装的包

2024-04-25 03:33:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经使用pip从github安装了一个包

pip install git+'...'

包的结构如下所示:

setup.py
pkg/
    app.py
    __init__.py
tests/
    test.py
    __init__.py

如何在我的机器上使用pytest从tests文件夹运行测试


Tags: installpippytestgitgithub文件夹机器