fix tests
This commit is contained in:
parent
487d76ba61
commit
443eb2bbe1
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user