diff options
author | Pjotr Prins | 2020-07-25 08:24:33 +0100 |
---|---|---|
committer | Pjotr Prins | 2020-07-25 08:24:33 +0100 |
commit | 9f8beacddb71aac9905c896b9d81caf45b4735a0 (patch) | |
tree | 1f3ea2b1bdb6835a6c172b739e6872bf59af6181 /wqflask/mock | |
parent | c249ba2ef7d691227da8864838dfc97db68d4084 (diff) | |
parent | f66da35a09cbb8da13cfb142cbe3ff208404970b (diff) | |
download | genenetwork2-9f8beacddb71aac9905c896b9d81caf45b4735a0.tar.gz |
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into testing
Diffstat (limited to 'wqflask/mock')
-rw-r--r-- | wqflask/mock/__init__.py | 0 | ||||
-rw-r--r-- | wqflask/mock/es_double.py | 15 |
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] - }} |