Skip to content

Commit

Permalink
add a decorator for todo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sobolev authored and djmitche committed Jul 19, 2014
1 parent 25ee372 commit 85578fe
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions master/buildbot/test/util/todo.py
@@ -0,0 +1,30 @@
# This file is part of Buildbot. Buildbot is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 51
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members
"""
Mark a test as a todo one
"""


def todo(message):
"""
decorator to mark a todo test
"""
def wrap(func):
"""
just mark the test
"""
func.todo = message
return func
return wrap

0 comments on commit 85578fe

Please sign in to comment.