在Python中如何进行单元测试

date
May 13, 2024
slug
how-to-unit-test-in-python
status
Published
tags
编程
Python
summary
现在我想要通过 test_a.py 测试 src文件夹下 methods.py 里的函数 a()。首先将终端路径切换到 Code。
type
Post
cover
对于项目文件结构:
现在我想要通过 test_a.py 测试 src文件夹下 methods.py 里的函数 a()。首先将终端路径切换到 Code。
然后运行
 

© JD 2021 - 2024