Python Nose 测试片段
Sublime Text 的 Python Nose 测试片段
标签 片段
详细信息
安装次数
- 总计 5K
- Win 3K
- Mac 828
- Linux 1K
Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Mac | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
README.md
Sublime Text Snippets - Python Nose Testing
Sublime Text 的 nose 测试片段。
安装
包管理器(简单方法)
如果没有安装,请安装 Sublime Package Control。
在命令板(Mac 上为 Cmd-Shift+P)中输入 'Install' 并按回车键以查看包列表。搜索 'Python Nose Snippets' 并按回车键安装。
…或复制文件到您的包目录。
Mac OS X
git clone git://github.com/sloria/sublime-nose-snippets.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Python/sublime-nose-snippets
Windows
git clone git://github.com/sloria/sublime-nose-snippets.git %userprofile%\AppData\Roaming\Sublime Text 2\Packages\Python\sublime-nose-snippets
示例
_==
展示为assert_equal(first, second)
_~%
展示为assert_almost_equal(first, second, places=7)
_>
展示为assert_greater(first, second)
_raises
展示为assert_raises(Exception)
testcase
展示为
class MODULETest(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_FEATURE(self):
assert False, "Finish me."
所有片段
_==
和_!=
_~%
和_!~%
_>
,_>=
,_<
,和_<=
_true
和_false
_in
和_!in
_is
和_isnot
_isnone
和_isnotnone
_isinstance
和_!isinstance
_raises
_matches
和_!matches
testcase
noseboiler
(unittest 和 nose 导入 + 示例 TestCase)
许可协议:WTFPL。