Merge pull request #2 from evg-allegro/master

Fixes to the requirements files
This commit is contained in:
Allegro AI 2019-06-18 17:21:02 +03:00 committed by GitHub
commit e9d4141460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 8 deletions

View File

@ -1 +1,2 @@
Flask
Flask
pyhocon>=0.3.35

View File

@ -285,7 +285,7 @@ class EventBLL(object):
es_res = self.es.search(index=es_index, body=es_req, scroll="1h")
events = [hit["_source"] for hit in es_res["hits"]["hits"]]
next_scroll_id = es_res["_scroll_id"]
next_scroll_id = es_res.get("_scroll_id")
total_events = es_res["hits"]["total"]
return events, next_scroll_id, total_events
@ -365,7 +365,7 @@ class EventBLL(object):
)
events = [doc["_source"] for doc in es_res.get("hits", {}).get("hits", [])]
next_scroll_id = es_res["_scroll_id"]
next_scroll_id = es_res.get("_scroll_id")
total_events = es_res["hits"]["total"]
return TaskEventsResult(

View File

@ -25,3 +25,4 @@ validators>=0.12.4
fastjsonschema>=2.8
boltons>=19.1.0
semantic_version>=2.6.0,<3
furl>=2.0.0

View File

@ -5,16 +5,16 @@ import json
import unittest
import es_factory
from tests.api_client import APIClient
from config import config
from tests.automated import TestService
log = config.logger(__file__)
class TestDatasetsService(unittest.TestCase):
class TestDatasetsService(TestService):
def setUp(self):
self.api = APIClient(base_url="http://localhost:5100/v1.0")
def setUp(self, version="1.0"):
super(TestDatasetsService, self).setUp(version=version)
self.created_tasks = []
self.task = dict(

View File

@ -1 +1,2 @@
numpy>=1.12.1
parameterized>=0.7.0

View File

@ -1,5 +1,4 @@
Jinja2>=2.9.6
setuptools>=33,<34
requests>=2.0
Werkzeug==0.12.2
Flask==0.12.2