Ansible_workstation/files/dotfiles/vim/UltiSnips/python.snippets

20 lines
307 B
Plaintext
Raw Normal View History

2018-08-23 14:41:22 +00:00
snippet todo "A python todo mark" b
# TODO: ${1:desc} |`date`
endsnippet
snippet tvar "testing a variable" b
print("${1:Varname} -> ", $1)
endsnippet
# Unittest
snippet deftest "test function without docstrings" b
def test_${1:function}(`!p
if snip.indent:
snip.rv = 'self' `):
${0:pass}
endsnippet