From 5db20299b046e37fcb3517e89c3ecf527e7db657 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 21 Jul 2020 12:40:37 +0300 Subject: Remove mock directory * wqflask/mock: Delete it. Causes name conflicts with Python's mock module --- wqflask/mock/es_double.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 wqflask/mock/es_double.py (limited to 'wqflask/mock/es_double.py') diff --git a/wqflask/mock/es_double.py b/wqflask/mock/es_double.py deleted file mode 100644 index 6ef8a1b9..00000000 --- a/wqflask/mock/es_double.py +++ /dev/null @@ -1,15 +0,0 @@ -class ESDouble(object): - def __init__(self): - self.items = {} - - def ping(self): - return true - - def create(self, index, doc_type, body, id): - self.items["index"] = {doc_type: {"id": id, "_source": data}} - - def search(self, index, doc_type, body): - return { - "hits": { - "hits": self.items[index][doc_type][body] - }} -- cgit v1.2.3