From eeab15e78c89812599d3b6b967585cdfbeab7acd Mon Sep 17 00:00:00 2001 From: Evgeny Date: Tue, 18 Jun 2019 16:17:43 +0300 Subject: [PATCH] Fixed automated unit tests for api server --- server/tests/automated/task_events_tests.py | 8 ++++---- server/tests/requirements.txt | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/server/tests/automated/task_events_tests.py b/server/tests/automated/task_events_tests.py index a62dc8d..130f472 100644 --- a/server/tests/automated/task_events_tests.py +++ b/server/tests/automated/task_events_tests.py @@ -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( diff --git a/server/tests/requirements.txt b/server/tests/requirements.txt index 6d831c0..7eb0932 100644 --- a/server/tests/requirements.txt +++ b/server/tests/requirements.txt @@ -1 +1,2 @@ numpy>=1.12.1 +parameterized>=0.7.0