Move tests: unit/dispatcher 65/48265/5
authorEmma Foley <emma.l.foley@intel.com>
Wed, 29 Nov 2017 23:35:05 +0000 (23:35 +0000)
committerEmma Foley <emma.l.foley@intel.com>
Fri, 12 Jan 2018 14:39:00 +0000 (14:39 +0000)
* Fix pylint errors
* Add TODOs

Some errors are ignored locally, as they were a symptom of other problems.
These issues have been flagged with a TODO, and should be fixed later.

JIRA: YARDSTICK-837
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Change-Id: I1f8a6041424c4c69f46ef30bd5c66d2d51d24347

yardstick/tests/unit/dispatcher/__init__.py [moved from tests/unit/dispatcher/__init__.py with 100% similarity]
yardstick/tests/unit/dispatcher/test_influxdb.py [moved from tests/unit/dispatcher/test_influxdb.py with 97% similarity]
yardstick/tests/unit/dispatcher/test_influxdb_line_protocol.py [moved from tests/unit/dispatcher/test_influxdb_line_protocol.py with 98% similarity]

similarity index 97%
rename from tests/unit/dispatcher/test_influxdb.py
rename to yardstick/tests/unit/dispatcher/test_influxdb.py
index 7ebe8c9..bca94e3 100644 (file)
 
 # Unittest for yardstick.dispatcher.influxdb
 
-from __future__ import absolute_import
+import mock
 import unittest
 
+from yardstick.dispatcher.influxdb import InfluxdbDispatcher
+from yardstick import _init_logging
 
-try:
-    from unittest import mock
-except ImportError:
-    import mock
 
-from yardstick import _init_logging
 _init_logging()
 
-from yardstick.dispatcher.influxdb import InfluxdbDispatcher
-
 
 class InfluxdbDispatcherTestCase(unittest.TestCase):
 
@@ -11,7 +11,6 @@
 # yardstick comment: this file is a modified copy of
 # influxdb-python/influxdb/tests/test_line_protocol.py
 
-from __future__ import absolute_import
 import unittest
 from third_party.influxdb.influxdb_line_protocol import make_lines