diff options
author | zsloan | 2020-07-24 20:16:17 -0500 |
---|---|---|
committer | GitHub | 2020-07-24 20:16:17 -0500 |
commit | f66da35a09cbb8da13cfb142cbe3ff208404970b (patch) | |
tree | b05021c6e7b9f83c63257fec63414ecefa36668e /wqflask/mock/es_double.py | |
parent | 60d8968c4fc2ca15fc9cf2f63c0b34a25f6fb053 (diff) | |
parent | 5eb26c5a209f3a3c54cf6fe623e5372188bdd1bc (diff) | |
download | genenetwork2-f66da35a09cbb8da13cfb142cbe3ff208404970b.tar.gz |
Merge pull request #409 from BonfaceKilz/Build/add-tests
Build/add tests
Diffstat (limited to 'wqflask/mock/es_double.py')
-rw-r--r-- | wqflask/mock/es_double.py | 15 |
1 files changed, 0 insertions, 15 deletions
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] - }} |