Skip to content

Commit

Permalink
snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhea0 committed Apr 27, 2014
1 parent e5b572c commit 0b740ce
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dotfiles/snippets/unittest.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Type testcase and press tab to insert a unittest.TestCase class -->

<snippet>
<content><![CDATA[
class ${1:ClassTestName}(unittest.TestCase):
def setUp(self):
${2:pass}
def tearDown(self):
${3:pass}
]]></content>
<tabTrigger>testcase</tabTrigger>
<scope>source.python</scope>
<description>Adds a unittest TestCase skeleton at current pointer</description>
</snippet>
8 changes: 8 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import pdb; pdb.set_trace()
class ClassTestName(unittest.TestCase):
def setUp(self):
pass

def tearDown(self):
pass

0 comments on commit 0b740ce

Please sign in to comment.