python - 在哪里保存 Python 单元测试?

标签 python unit-testing code-organization

<分区>

Possible Duplicate:
Where do the Python unit tests go?

单元测试是保存在与代码相同的文件中,还是保存在同一目录中的单独文件中,还是保存在完全不同的目录中?

最佳答案

我总是将单元测试放在名为 test 的相关代码的子目录中。

例如:/libs/authentication,测试将放在/libs/authentication/tests

关于python - 在哪里保存 Python 单元测试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/882399/

相关文章:

java - ApplicationContext 始终为空

javascript - 错误 TS2304 : Cannot find name 'createNewEvent'

android - Robolectric 不使用 ShadowWebView 作为扩展 WebView 的类的父类(super class)。 MustOverrideException 代替

android - 在Android项目中使用开源库

CSS Transitions 代码组织

具有稀疏序列的Python数据结构

python - 在 Windows 上为 Python 安装 Pillow

python mysqldb 查询 with where

javascript - 如何在大型 php 网站中组织一些 javascript

python - 为 matplotlib 安装 GUI 后端的最简单方法?