From 443eb2bbe100b6e529b4c13e4c055c3ade99a56b Mon Sep 17 00:00:00 2001 From: posativ Date: Sun, 21 Oct 2012 09:51:32 +0200 Subject: [PATCH] fix tests --- isso/markup.py | 6 ------ specs/test_comment.py | 3 ++- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/isso/markup.py b/isso/markup.py index b6e7f9c..c35d0cc 100644 --- a/isso/markup.py +++ b/isso/markup.py @@ -1,7 +1,5 @@ # XXX: BBCode -- http://pypi.python.org/pypi/bbcode -import abc - try: import misaka except ImportError: @@ -10,13 +8,9 @@ except ImportError: class Markup: - __metaclass__ = abc.ABCMeta - - @abc.abstractmethod def __init__(self, conf): return - @abc.abstractmethod def convert(self, text): return text diff --git a/specs/test_comment.py b/specs/test_comment.py index 6159db4..4e5c51f 100644 --- a/specs/test_comment.py +++ b/specs/test_comment.py @@ -18,7 +18,8 @@ class TestComments(unittest.TestCase): def setUp(self): fd, self.path = tempfile.mkstemp() - self.app = Isso({'SQLITE': self.path, 'PRODUCTION': False}) + self.app = Isso({'SQLITE': self.path, 'PRODUCTION': False, + 'MARKUP': 'isso.markup.Markup'}) self.client = Client(self.app, Response) self.get = lambda *x, **z: self.client.get(*x, **z)