From 66965bcd5b5b1f5e0034470aab34eeb22c8624bc Mon Sep 17 00:00:00 2001 From: yugangw-msft Date: Thu, 28 Apr 2016 19:43:19 -0700 Subject: [PATCH] move vm image tests to a right location --- azure-cli.pyproj | 3 +++ .../azure/cli/command_modules/{test => vm/tests}/__init__.py | 0 .../azure/cli/command_modules/{test => vm/tests}/aliases.json | 0 .../azure/cli/command_modules/vm/tests/test_commands.py | 2 +- .../cli/command_modules/vm/tests/test_custom_vm_commands.py | 3 +-- .../cli/command_modules/{test => vm/tests}/test_vm_image.py | 0 6 files changed, 5 insertions(+), 3 deletions(-) rename src/command_modules/azure-cli-vm/azure/cli/command_modules/{test => vm/tests}/__init__.py (100%) rename src/command_modules/azure-cli-vm/azure/cli/command_modules/{test => vm/tests}/aliases.json (100%) rename src/command_modules/azure-cli-vm/azure/cli/command_modules/{test => vm/tests}/test_vm_image.py (100%) diff --git a/azure-cli.pyproj b/azure-cli.pyproj index aecd865ee05..729ddbf4a9c 100644 --- a/azure-cli.pyproj +++ b/azure-cli.pyproj @@ -132,6 +132,8 @@ + + Code @@ -220,6 +222,7 @@ + diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/test/__init__.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/__init__.py similarity index 100% rename from src/command_modules/azure-cli-vm/azure/cli/command_modules/test/__init__.py rename to src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/__init__.py diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/test/aliases.json b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/aliases.json similarity index 100% rename from src/command_modules/azure-cli-vm/azure/cli/command_modules/test/aliases.json rename to src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/aliases.json diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_commands.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_commands.py index aee9ab8e7fe..a3535f416c6 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_commands.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_commands.py @@ -1,7 +1,7 @@ import os import unittest from azure.cli.utils.command_test_util import CommandTestGenerator -from command_specs import TEST_DEF, ENV_VAR +from command_specs import TEST_DEF, ENV_VAR #pylint: disable=import-error,relative-import class TestCommands(unittest.TestCase): pass diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_custom_vm_commands.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_custom_vm_commands.py index 51077643c4e..1d347b0c968 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_custom_vm_commands.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_custom_vm_commands.py @@ -1,5 +1,4 @@ -import json -import unittest +import unittest from azure.cli.command_modules.vm._validators import MinMaxValue class Test_Vm_Custom(unittest.TestCase): diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/test/test_vm_image.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_image.py similarity index 100% rename from src/command_modules/azure-cli-vm/azure/cli/command_modules/test/test_vm_image.py rename to src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_image.py