Fix pep8 support in src/test.
This commit is contained in:
parent
fb0d7c9ca4
commit
5b54be83bd
1 changed files with 11 additions and 5 deletions
|
|
@ -26,9 +26,11 @@ TEST_JID_STR = u"test@example.org/SàT"
|
|||
TEST_JID = JID(u"test@example.org/SàT")
|
||||
TEST_PROFILE = 'test_profile'
|
||||
|
||||
|
||||
class DifferentArgsException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class FakeSAT(object):
|
||||
"""Class to simulate a SAT instance"""
|
||||
|
||||
|
|
@ -75,6 +77,7 @@ class FakeMemory(object):
|
|||
def delWaitingSub(self, contact_jid, profile_key):
|
||||
pass
|
||||
|
||||
|
||||
class FakeTriggerManager(object):
|
||||
|
||||
def add(self, point_name, callback):
|
||||
|
|
@ -84,11 +87,13 @@ class FakeTriggerManager(object):
|
|||
"""We always return true to continue the action"""
|
||||
return True
|
||||
|
||||
|
||||
class FakeParent(object):
|
||||
def __init__(self):
|
||||
self.profile = 'test_profile'
|
||||
self.jid = TEST_JID
|
||||
|
||||
|
||||
def _(text):
|
||||
return text
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue