Coverage for portality/events/consumer.py: 75%
8 statements
« prev ^ index » next coverage.py v6.4.2, created at 2022-08-04 15:38 +0100
« prev ^ index » next coverage.py v6.4.2, created at 2022-08-04 15:38 +0100
1class EventConsumer(object):
2 # subclass must provide an ID
3 ID = None
5 @classmethod
6 def consumes(cls, event):
7 raise NotImplementedError()
9 @classmethod
10 def consume(cls, event):
11 raise NotImplementedError()