mock.py 316 B

12345678910111213
  1. # Copyright © 2023 Ingram Micro Inc. All rights reserved.
  2. from dj_cqrs.transport import BaseTransport
  3. class TransportMock(BaseTransport):
  4. @staticmethod
  5. def produce(payload):
  6. return TransportMock.consume(payload)
  7. @staticmethod
  8. def consume(payload=None, **kwargs):
  9. return payload