|
|
|
@ -1,8 +1,9 @@
|
|
|
|
|
snippet #py "Set the python environment." |
|
|
|
|
#!/usr/bin/env python |
|
|
|
|
#-*- encoding: utf-8 |
|
|
|
|
# -*- encoding: utf-8 -*- |
|
|
|
|
|
|
|
|
|
"""${1:Module documentation}""" |
|
|
|
|
|
|
|
|
|
$0 |
|
|
|
|
endsnippet |
|
|
|
|
|
|
|
|
@ -20,7 +21,6 @@ endsnippet
|
|
|
|
|
|
|
|
|
|
snippet from "Import a module from another" |
|
|
|
|
from ${1:source} import ${2:module} |
|
|
|
|
$0 |
|
|
|
|
endsnippet |
|
|
|
|
|
|
|
|
|
snippet def "Function" |
|
|
|
@ -28,3 +28,15 @@ def ${1:function name}(${2:parameters}):
|
|
|
|
|
"""${3:Function description}""" |
|
|
|
|
$0 |
|
|
|
|
endsnippet |
|
|
|
|
|
|
|
|
|
snippet ae "Assert equals" |
|
|
|
|
self.assertEqual($1, $2) |
|
|
|
|
endsnippet |
|
|
|
|
|
|
|
|
|
snippet at "Assert true" |
|
|
|
|
self.assertTrue(${1:condition}) |
|
|
|
|
endsnippet |
|
|
|
|
|
|
|
|
|
snippet af "Assert false" |
|
|
|
|
self.assertFalse(${1:condition}) |
|
|
|
|
endsnippet |
|
|
|
|