aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2020-07-21 12:40:37 +0300
committerBonfaceKilz2020-07-24 03:47:42 +0300
commit5db20299b046e37fcb3517e89c3ecf527e7db657 (patch)
treeccc7b40c913c34feeeee4b385f1f7a563d0f3682
parentf4e61929d0eb490dbf7e8ddc03a20d42d44b6f5c (diff)
downloadgenenetwork2-5db20299b046e37fcb3517e89c3ecf527e7db657.tar.gz
Remove mock directory
* wqflask/mock: Delete it. Causes name conflicts with Python's mock module
-rw-r--r--wqflask/mock/__init__.py0
-rw-r--r--wqflask/mock/es_double.py15
2 files changed, 0 insertions, 15 deletions
diff --git a/wqflask/mock/__init__.py b/wqflask/mock/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/wqflask/mock/__init__.py
+++ /dev/null
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]
- }}