Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sloria/sublime-pytest-snippets
Sublime Text Snippets for pytest
https://github.com/sloria/sublime-pytest-snippets
Last synced: 14 days ago
JSON representation
Sublime Text Snippets for pytest
- Host: GitHub
- URL: https://github.com/sloria/sublime-pytest-snippets
- Owner: sloria
- Created: 2014-04-20T03:11:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-12-11T16:57:36.000Z (almost 5 years ago)
- Last Synced: 2024-10-05T22:02:15.331Z (about 1 month ago)
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Sublime Text Snippets For pytest
===========================================Sublime Text snippets for testing with [pytest](http://pytest.org/latest/).
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 'pytest snippets' then press enter to install.
### ...OR copy files to your Packages directory.
#### Linux
git clone git://github.com/sloria/sublime-pytest-snippets.git ~/.config/sublime-text-3/Packages/python/sublime-pytest-snippets#### Mac OS X
git clone git://github.com/sloria/sublime-pytest-snippets.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Python/sublime-pytest-snippets#### Windows
git clone git://github.com/sloria/sublime-pytest-snippets.git %userprofile%\AppData\Roaming\Sublime Text 3\Packages\Python\sublime-pytest-snippetsExamples
--------- `a==` expands to `assert first == second`
- `a>` expands to `assert first > second`
- `fixture` expands to```python
@pytest.fixture(scope='function')
def name:
body
```All snippets
------------Assertions
- `a==` and `a!=`
- `a~=` and `a!~=`
- `a>`, `a>=`, `a<`, and `a<=`
- `atrue` and `afalse`
- `ain` and `a!in`
- `ais` and `aisnot`
- `araises`Fixtures
- `fixture`
- `yieldfixture`
- `mark`
- `parametrize`License
-------Licensed under the [WTFPL](http://www.wtfpl.net/).