From 225636672f9da12be4f1570598153dcf27afc0d1 Mon Sep 17 00:00:00 2001 From: Emma Foley Date: Wed, 29 Nov 2017 23:33:27 +0000 Subject: [PATCH] Move tests: unit/cmd/ * 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. Change-Id: I505d72e1c646fea1976a0bf854369c6b6308bbb1 Jira: YARDSTICK-837 Signed-off-by: Emma Foley --- {tests => yardstick/tests}/unit/test_cmd/__init__.py | 0 {tests => yardstick/tests}/unit/test_cmd/commands/__init__.py | 0 {tests => yardstick/tests}/unit/test_cmd/commands/test_env.py | 0 {tests => yardstick/tests}/unit/test_cmd/commands/test_testcase.py | 0 {tests => yardstick/tests}/unit/test_cmd/test_NSBperf.py | 2 +- 5 files changed, 1 insertion(+), 1 deletion(-) rename {tests => yardstick/tests}/unit/test_cmd/__init__.py (100%) rename {tests => yardstick/tests}/unit/test_cmd/commands/__init__.py (100%) rename {tests => yardstick/tests}/unit/test_cmd/commands/test_env.py (100%) rename {tests => yardstick/tests}/unit/test_cmd/commands/test_testcase.py (100%) rename {tests => yardstick/tests}/unit/test_cmd/test_NSBperf.py (99%) diff --git a/tests/unit/test_cmd/__init__.py b/yardstick/tests/unit/test_cmd/__init__.py similarity index 100% rename from tests/unit/test_cmd/__init__.py rename to yardstick/tests/unit/test_cmd/__init__.py diff --git a/tests/unit/test_cmd/commands/__init__.py b/yardstick/tests/unit/test_cmd/commands/__init__.py similarity index 100% rename from tests/unit/test_cmd/commands/__init__.py rename to yardstick/tests/unit/test_cmd/commands/__init__.py diff --git a/tests/unit/test_cmd/commands/test_env.py b/yardstick/tests/unit/test_cmd/commands/test_env.py similarity index 100% rename from tests/unit/test_cmd/commands/test_env.py rename to yardstick/tests/unit/test_cmd/commands/test_env.py diff --git a/tests/unit/test_cmd/commands/test_testcase.py b/yardstick/tests/unit/test_cmd/commands/test_testcase.py similarity index 100% rename from tests/unit/test_cmd/commands/test_testcase.py rename to yardstick/tests/unit/test_cmd/commands/test_testcase.py diff --git a/tests/unit/test_cmd/test_NSBperf.py b/yardstick/tests/unit/test_cmd/test_NSBperf.py similarity index 99% rename from tests/unit/test_cmd/test_NSBperf.py rename to yardstick/tests/unit/test_cmd/test_NSBperf.py index 19eb0afa0..483e82a13 100644 --- a/tests/unit/test_cmd/test_NSBperf.py +++ b/yardstick/tests/unit/test_cmd/test_NSBperf.py @@ -59,7 +59,7 @@ class TestYardstickNSCli(unittest.TestCase): def test_handle_list_options(self): yardstick_ns_cli = YardstickNSCli() CLI_PATH = os.path.dirname(os.path.realpath(__file__)) - repo_dir = CLI_PATH + "/../../" + repo_dir = CLI_PATH + "/../../../" test_path = os.path.join(repo_dir, "../samples/vnf_samples/nsut/") args = {"list_vnfs": True, "list": False} self.assertRaises(SystemExit, yardstick_ns_cli.handle_list_options, -- 2.16.6