Finalize project

This commit is contained in:
2021-06-18 15:29:43 +02:00
parent cf7bb3b853
commit 22e06ba6a3
129 changed files with 3 additions and 434 deletions
@@ -0,0 +1,10 @@
class MyDate:
timestamp = None
@classmethod
def set_timestamp(cls, timestamp):
cls.timestamp = timestamp
@classmethod
def utcnow(cls):
return cls.timestamp
@@ -0,0 +1,43 @@
class MyQueue:
@property
def queue(self):
return None
class MyMethod:
method = MyQueue()
class MyChannel:
@staticmethod
def exchange_declare(*args, **kwargs):
return None
@staticmethod
def queue_declare(*args, **kwargs):
return MyMethod
@staticmethod
def queue_bind(*args, **kwargs):
return None
@staticmethod
def basic_consume(*args, **kwargs):
return None
@staticmethod
def basic_publish(*args, **kwargs):
return None
@staticmethod
def start_consuming(*args, **kwargs):
return None
class MyBlockingConnection:
def __init__(self, *args, **kwargs):
...
@staticmethod
def channel():
return MyChannel()
@@ -0,0 +1,7 @@
class MyResponse:
def __init__(self, *args, **kwargs):
...
@staticmethod
def json(*args, **kwargs):
return {'cursor': []}