aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2013-10-10 22:38:24 +0200
committerMatěj Cepl <mcepl@redhat.com>2013-10-10 22:38:24 +0200
commit426540a5a19ef772ae477ee0a37d4d6f0351c556 (patch)
treef12f4aa4df58595a6edd3ec701eb82d9c52e722c
parenta8095425740b33100ec98a205c07222f2b0cf49e (diff)
downloadcucutags-426540a5a19ef772ae477ee0a37d4d6f0351c556.tar.gz
Forgot to parse step files for 'given' decorator.
-rwxr-xr-xcucutags.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cucutags.py b/cucutags.py
index d95077b..4ac2641 100755
--- a/cucutags.py
+++ b/cucutags.py
@@ -31,7 +31,7 @@ logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s',
import parse
__docformat__ = 'reStructuredText'
-__version__ = "0.5.0"
+__version__ = "0.6.0"
__author__ = u"Matěj Cepl <mcepl_at_redhat_dot_com>"
@@ -39,7 +39,7 @@ class Target(object):
"""
Represents one line from the Python modules.
"""
- pattern = re.compile(r"^\s*@(step|when|then)\(u'(.*)'\)")
+ pattern = re.compile(r"^\s*@(step|when|given|then)\(u'(.*)'\)")
result = 'targets'
def __init__(self, text, filename, lineno):