fix unittests with mocking

This commit is contained in:
Martin Zimmermann 2013-09-13 16:12:26 +02:00
parent adb3d40c03
commit e56d6a087a
2 changed files with 8 additions and 2 deletions

View File

@ -10,9 +10,12 @@ import unittest
from werkzeug.test import Client
from werkzeug.wrappers import Response
from isso import Isso, notify
from isso import Isso, notify, utils
from isso.models import Comment
utils.heading = lambda *args: "Untitled."
utils.urlexists = lambda *args: True
class FakeIP(object):

View File

@ -9,7 +9,10 @@ import unittest
from werkzeug.test import Client
from werkzeug.wrappers import Response
from isso import Isso, notify
from isso import Isso, notify, utils
utils.heading = lambda *args: "Untitled."
utils.urlexists = lambda *args: True
class FakeIP(object):