fix unittests with mocking
This commit is contained in:
parent
adb3d40c03
commit
e56d6a087a
@ -10,9 +10,12 @@ import unittest
|
|||||||
from werkzeug.test import Client
|
from werkzeug.test import Client
|
||||||
from werkzeug.wrappers import Response
|
from werkzeug.wrappers import Response
|
||||||
|
|
||||||
from isso import Isso, notify
|
from isso import Isso, notify, utils
|
||||||
from isso.models import Comment
|
from isso.models import Comment
|
||||||
|
|
||||||
|
utils.heading = lambda *args: "Untitled."
|
||||||
|
utils.urlexists = lambda *args: True
|
||||||
|
|
||||||
|
|
||||||
class FakeIP(object):
|
class FakeIP(object):
|
||||||
|
|
||||||
|
@ -9,7 +9,10 @@ import unittest
|
|||||||
from werkzeug.test import Client
|
from werkzeug.test import Client
|
||||||
from werkzeug.wrappers import Response
|
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):
|
class FakeIP(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user