Sublime Text snippets for testing with pytest.
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 'pytest snippets' then press enter to install.
git clone git://github.com/sloria/sublime-pytest-snippets.git ~/.config/sublime-text-3/Packages/python/sublime-pytest-snippets
git clone git://github.com/sloria/sublime-pytest-snippets.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Python/sublime-pytest-snippets
git clone git://github.com/sloria/sublime-pytest-snippets.git %userprofile%\AppData\Roaming\Sublime Text 3\Packages\Python\sublime-pytest-snippets
a==expands toassert first == seconda>expands toassert first > secondfixtureexpands to
@pytest.fixture(scope='function')
def name:
bodyAssertions
a==anda!=a~=anda!~=a>,a>=,a<, anda<=atrueandafalseainanda!inaisandaisnotaraises
Fixtures
fixtureyieldfixturemarkparametrize
Licensed under the WTFPL.