kopia lustrzana https://github.com/snarfed/bridgy-fed
testutil: stub out FakeProtocol class
rodzic
5486d2a2fa
commit
2e79512f55
|
|
@ -24,7 +24,17 @@ import protocol
|
|||
with ndb_client.context():
|
||||
global_user = User.get_or_create('foo.com')
|
||||
|
||||
# TODO: FakeProtocol class
|
||||
|
||||
class FakeProtocol(protocol.Protocol):
|
||||
LABEL = 'fake'
|
||||
|
||||
@classmethod
|
||||
def send(cls, url, activity, *, user=None, log_data=True):
|
||||
raise NotImplementedError()
|
||||
|
||||
@classmethod
|
||||
def fetch(cls, id, obj, *, user=None):
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
class TestCase(unittest.TestCase, testutil.Asserts):
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue