【发布时间】:2020-10-11 19:48:57
【问题描述】:
我正在构建我的第一个 python 包。 我注意到 pytest 对直接进入 GitHub 的代码进行了自动测试 我搜索了良好而清晰的解释,但我无法弄清楚自己 有什么办法可以帮助我吗?
目录结构:
-> deezepy:
|
-> __init__.py
-> client.py
-> types.py
-> tests/
currently empty
我应该在我的测试目录中放什么?两个文件:
client.py -> https://hastebin.com/yoyemirula.py
types.py -> https://hastebin.com/amafegilic.rb
我很高兴有人能帮助我第一次使用这些工具,谢谢!
【问题讨论】:
-
你必须先写一些测试。
-
@hoefling 是的,但是如何?
标签: python testing github continuous-integration pytest