Ansible_workstation/files/vim/UltiSnips/python.snippets
2018-08-23 16:41:22 +02:00

20 lines
307 B
Plaintext

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