Clean up tests folder 29/28929/2
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Fri, 17 Feb 2017 10:39:28 +0000 (18:39 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Sat, 18 Feb 2017 16:15:57 +0000 (00:15 +0800)
- remove __init__.py as recommended in pytest docs[1]
- rename cli test files for a consistent naming style
- remove empty test files

[1]: http://docs.pytest.org/en/latest/goodpractices.html#choosing-a-test-layout-import-rules

Change-Id: Idfb5d8a8fb7a590ef988a761991b8e313089e9bc
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
tests/__init__.py [deleted file]
tests/unit/__init__.py [deleted file]
tests/unit/cli/__init__.py [deleted file]
tests/unit/cli/cmd_metric_test.py [moved from tests/unit/cli/test_metric.py with 100% similarity]
tests/unit/cli/cmd_plan_test.py [moved from tests/unit/cli/test_plan.py with 100% similarity]
tests/unit/cli/cmd_qpi_test.py [moved from tests/unit/cli/test_qpi.py with 100% similarity]
tests/unit/cli/options_test.py [moved from tests/unit/cli/test_options.py with 100% similarity]
tests/unit/collector/transformer/__init__.py [deleted file]
tests/unit/loader/__init__.py [deleted file]
tests/unit/runner/__init__.py [deleted file]

diff --git a/tests/__init__.py b/tests/__init__.py
deleted file mode 100644 (file)
index d6d2dee..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-##############################################################################
-# Copyright (c) 2016 ZTE Corp and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-from os import path
-
-
-class BaseTest(object):
-    PATH = path.abspath(path.join(path.dirname(__file__), 'data'))
-
-    @classmethod
-    def abspath(cls, name):
-        return path.join(cls.PATH, name)
diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/tests/unit/cli/__init__.py b/tests/unit/cli/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/tests/unit/collector/transformer/__init__.py b/tests/unit/collector/transformer/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/tests/unit/loader/__init__.py b/tests/unit/loader/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/tests/unit/runner/__init__.py b/tests/unit/runner/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000