From 6ddf00f71144eae4cb8ffb6480d865d105986da8 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Fri, 1 Aug 2014 10:38:01 -0300 Subject: [PATCH] added a snippet to tell django/nose to not cover a function --- UltiSnips/python.snippets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index 67e046f..a46720a 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -40,3 +40,7 @@ endsnippet snippet af "Assert false" self.assertFalse(${1:condition}) endsnippet + +snippet nocover "Remove the block from the coverage" +# pragma: no cover +endsnippet