diff options
author | BonfaceKilz | 2021-10-28 11:05:19 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-10-28 11:10:21 +0300 |
commit | 03caa57ad209f3bdd135be9d6516b94261c9b8de (patch) | |
tree | 17ddfbdd37fe7fa7b3007dbaf2805813f136be2b /test/requests/parametrized_test.py | |
parent | 230184bf1484ed672bf66c29110bcb47e556f72f (diff) | |
download | genenetwork2-03caa57ad209f3bdd135be9d6516b94261c9b8de.tar.gz |
Remove all elasticsearch references in gn2
Diffstat (limited to 'test/requests/parametrized_test.py')
-rw-r--r-- | test/requests/parametrized_test.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/test/requests/parametrized_test.py b/test/requests/parametrized_test.py deleted file mode 100644 index 50003850..00000000 --- a/test/requests/parametrized_test.py +++ /dev/null @@ -1,32 +0,0 @@ -import logging -import unittest -from wqflask import app -from utility.elasticsearch_tools import get_elasticsearch_connection, get_user_by_unique_column -from elasticsearch import Elasticsearch, TransportError - -class ParametrizedTest(unittest.TestCase): - - def __init__(self, methodName='runTest', gn2_url="http://localhost:5003", es_url="localhost:9200"): - super(ParametrizedTest, self).__init__(methodName=methodName) - self.gn2_url = gn2_url - self.es_url = es_url - - def setUp(self): - self.es = get_elasticsearch_connection() - self.es_cleanup = [] - - es_logger = logging.getLogger("elasticsearch") - es_logger.setLevel(app.config.get("LOG_LEVEL")) - es_logger.addHandler( - logging.FileHandler("/tmp/es_TestRegistrationInfo.log")) - es_trace_logger = logging.getLogger("elasticsearch.trace") - es_trace_logger.addHandler( - logging.FileHandler("/tmp/es_TestRegistrationTrace.log")) - - def tearDown(self): - from time import sleep - self.es.delete_by_query( - index="users" - , doc_type="local" - , body={"query":{"match":{"email_address":"test@user.com"}}}) - sleep(1) |