Python Nose Testing Snippets
Sublime Text snippets for Python nose testing
Labels snippets
Details
Installs
- Total 5K
- Win 3K
- Mac 829
- Linux 1K
Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
Linux | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text Snippets - Python Nose Testing
Sublime Text snippets for nose testing.
Install
Package Control (the easy way)
Install Sublime Package Control if you don't have it.
In the command pallette (Cmd-Shift+P on Mac) type 'Install' then press enter to see a list of packages. Search for 'Python Nose Snippets' then press enter to install.
…OR copy files to your Packages directory.
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
Examples
_==
expands toassert_equal(first, second)
_~=
expands toassert_almost_equal(first, second, places=7)
_>
expands toassert_greater(first, second)
_raises
expands toassert_raises(Exception)
testcase
expands to:
class MODULETest(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_FEATURE(self):
assert False, "Finish me."
All snippets
_==
and_!=
_~=
and_!~=
_>
,_>=
,_<
, and_<=
_true
and_false
_in
and_!in
_is
and_isnot
_isnone
and_isnotnone
_isinstance
and_!isinstance
_raises
_matches
and_!matches
testcase
noseboiler
(unittest and nose imports + an example TestCase)
Licensed under the WTFPL.