Remove unused imports in unit tests

Change-Id: I10401bc240b2a7aebe6317067dafe8bfe35264f8
This commit is contained in:
Ivan Kolodyazhny 2013-01-02 22:40:36 +02:00
parent ced155e44c
commit f07647a367
21 changed files with 4 additions and 44 deletions

View File

@ -18,8 +18,6 @@
import os
import unittest
import mock
from quantum.agent.linux import utils
from quantum.openstack.common import log as logging

View File

@ -13,25 +13,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import inspect
import logging
import mock
from quantum.api.v2.router import APIRouter
from quantum.common import config
from quantum.common.test_lib import test_config
from quantum import context
from quantum.db import api as db
from quantum.db import l3_db
from quantum.db import quota_db
from quantum.manager import QuantumManager
from quantum.openstack.common import cfg
from quantum.plugins.cisco.common import cisco_constants as const
from quantum.plugins.cisco.db import network_db_v2
from quantum.plugins.cisco.db import network_models_v2
from quantum.plugins.openvswitch import ovs_models_v2
from quantum.tests.unit import test_db_plugin
from quantum.wsgi import JSONDeserializer
LOG = logging.getLogger(__name__)

View File

@ -13,15 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
import mock
import unittest
from quantum.common import exceptions as exc
from quantum.db import api as db
from quantum.openstack.common import importutils
from quantum.plugins.cisco.common import cisco_constants as const
from quantum.plugins.cisco.common import cisco_credentials_v2 as creds
from quantum.plugins.cisco.db import network_db_v2 as cdb
from quantum.plugins.cisco.db import network_models_v2
from quantum.plugins.cisco.nexus import cisco_nexus_plugin_v2

View File

@ -16,6 +16,7 @@
import unittest2 as unittest
from quantum.openstack.common import cfg
#NOTE this import loads tests required options
from quantum.plugins.linuxbridge.common import config

View File

@ -19,7 +19,6 @@ import unittest2 as unittest
from quantum.openstack.common import cfg
from quantum.plugins.linuxbridge.agent import linuxbridge_quantum_agent
from quantum.plugins.linuxbridge.common import config
from quantum.plugins.linuxbridge.common import constants as lconst

View File

@ -14,12 +14,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from quantum.common import exceptions as q_exc
from quantum.common.utils import find_config_file
from quantum.db import api as db
from quantum.db import db_base_plugin_v2
from quantum.db import l3_db
from quantum.db import models_v2
class Fake1(db_base_plugin_v2.QuantumDbPluginV2,

View File

@ -22,19 +22,14 @@ import mox
import stubout
import unittest2 as unittest
from quantum.common import config
from quantum.common.exceptions import NotImplementedError
from quantum import context
from quantum.db import api as db
from quantum.db import models_v2
from quantum.extensions.flavor import (FLAVOR_NETWORK, FLAVOR_ROUTER)
from quantum.extensions import l3
from quantum.openstack.common import cfg
from quantum.openstack.common import uuidutils
from quantum.plugins.metaplugin.meta_quantum_plugin import FlavorNotFound
from quantum.plugins.metaplugin.meta_quantum_plugin import MetaPluginV2
from quantum.plugins.metaplugin.proxy_quantum_plugin import ProxyPluginV2
from quantum.tests.unit.metaplugin import fake_plugin
CONF_FILE = ""
ROOTDIR = os.path.dirname(os.path.dirname(__file__))

View File

@ -16,6 +16,7 @@
import unittest
from quantum.openstack.common import cfg
#NOTE this import loads tests required options
from quantum.plugins.openvswitch.common import config

View File

@ -19,7 +19,6 @@ import unittest2 as unittest
from quantum.openstack.common import cfg
from quantum.plugins.openvswitch.agent import ovs_quantum_agent
from quantum.plugins.openvswitch.common import config
class CreateAgentConfigMap(unittest.TestCase):

View File

@ -18,6 +18,7 @@
import unittest2
from quantum.openstack.common import cfg
#NOTE this import loads tests required options
from quantum.plugins.ryu.common import config

View File

@ -17,11 +17,10 @@
from contextlib import nested
import operator
import unittest2
from quantum.db import api as db
from quantum.db import models_v2
from quantum.openstack.common import cfg
# NOTE: this import is needed for correct plugin code work
from quantum.plugins.ryu.common import config
from quantum.plugins.ryu.db import api_v2 as db_api_v2
from quantum.plugins.ryu.db import models_v2 as ryu_models_v2

View File

@ -18,9 +18,7 @@
import mock
import unittest2 as unittest
from quantum.agent.linux import ovs_lib
from quantum.agent import ovs_cleanup_util as util
from quantum.openstack.common import uuidutils
class TestOVSCleanup(unittest.TestCase):

View File

@ -16,16 +16,11 @@
# under the License.
import socket
import sys
import uuid
import mock
import unittest2 as unittest
from quantum.agent.common import config
from quantum.agent.linux import interface
from quantum.agent.linux import utils
from quantum.common import exceptions
from quantum.debug import commands
from quantum.debug.debug_agent import DEVICE_OWNER_PROBE, QuantumDebugAgent
from quantum.openstack.common import cfg

View File

@ -23,7 +23,6 @@ import uuid
import mock
import unittest2 as unittest
from quantum.agent.common import config
from quantum.agent import dhcp_agent
from quantum.agent.linux import interface
from quantum.common import exceptions

View File

@ -30,7 +30,6 @@ from quantum.api.extensions import (
PluginAwareExtensionManager,
)
from quantum.common import config
from quantum.common import exceptions
from quantum.db.db_base_plugin_v2 import QuantumDbPluginV2
from quantum.openstack.common import jsonutils
from quantum.openstack.common import log as logging

View File

@ -17,7 +17,6 @@
import os
import socket
import tempfile
import unittest2 as unittest
import mock

View File

@ -16,8 +16,6 @@
#
# @author: Mark McClain, DreamHost
import os
import mock
import unittest2 as unittest

View File

@ -19,7 +19,6 @@ import mock
import unittest2 as unittest
from quantum.agent.linux import ip_lib
from quantum.agent.linux import utils
from quantum.common import exceptions
NETNS_SAMPLE = [

View File

@ -27,9 +27,7 @@ import mock
import quantum
from quantum.common import exceptions
from quantum.common import utils
from quantum import context
from quantum.openstack.common import cfg
from quantum.openstack.common import importutils
from quantum.openstack.common import policy as common_policy
from quantum import policy

View File

@ -15,7 +15,6 @@
# under the License.
import os
import subprocess
import mock
import unittest2 as unittest

View File

@ -14,7 +14,6 @@
# under the License.
from quantum import wsgi
from quantum.wsgi import Serializer
def create_request(path, body, content_type, method='GET',