Merge "Move tests into project package."
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ./tests $LISTOPT $IDOPTION
|
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
|
||||||
test_id_option=--load-list $IDFILE
|
test_id_option=--load-list $IDFILE
|
||||||
test_list_option=--list
|
test_list_option=--list
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
from openstackclient.common import clientmanager
|
from openstackclient.common import clientmanager
|
||||||
from tests import utils
|
from openstackclient.tests import utils
|
||||||
|
|
||||||
|
|
||||||
class Container(object):
|
class Container(object):
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
import mock
|
import mock
|
||||||
|
|
||||||
from openstackclient.common import commandmanager
|
from openstackclient.common import commandmanager
|
||||||
from tests import utils
|
from openstackclient.tests import utils
|
||||||
|
|
||||||
|
|
||||||
class FakeCommand(object):
|
class FakeCommand(object):
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
from openstackclient.common import parseractions
|
from openstackclient.common import parseractions
|
||||||
from tests import utils
|
from openstackclient.tests import utils
|
||||||
|
|
||||||
|
|
||||||
class TestKeyValueAction(utils.TestCase):
|
class TestKeyValueAction(utils.TestCase):
|
||||||
@@ -17,7 +17,7 @@ import mock
|
|||||||
|
|
||||||
from openstackclient.common import clientmanager
|
from openstackclient.common import clientmanager
|
||||||
from openstackclient.compute import client as compute_client
|
from openstackclient.compute import client as compute_client
|
||||||
from tests import utils
|
from openstackclient.tests import utils
|
||||||
|
|
||||||
|
|
||||||
AUTH_TOKEN = "foobar"
|
AUTH_TOKEN = "foobar"
|
||||||
@@ -37,7 +37,7 @@ class TestCompute(utils.TestCase):
|
|||||||
api_version = {"compute": "2"}
|
api_version = {"compute": "2"}
|
||||||
|
|
||||||
compute_client.API_VERSIONS = {
|
compute_client.API_VERSIONS = {
|
||||||
"2": "tests.compute.test_compute.FakeClient"
|
"2": "openstackclient.tests.compute.test_compute.FakeClient"
|
||||||
}
|
}
|
||||||
|
|
||||||
self.cm = clientmanager.ClientManager(token=AUTH_TOKEN,
|
self.cm = clientmanager.ClientManager(token=AUTH_TOKEN,
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
from openstackclient.common import clientmanager
|
from openstackclient.common import clientmanager
|
||||||
from openstackclient.identity import client as identity_client
|
from openstackclient.identity import client as identity_client
|
||||||
from tests import utils
|
from openstackclient.tests import utils
|
||||||
|
|
||||||
|
|
||||||
AUTH_TOKEN = "foobar"
|
AUTH_TOKEN = "foobar"
|
||||||
@@ -35,7 +35,7 @@ class TestIdentity(utils.TestCase):
|
|||||||
api_version = {"identity": "2.0"}
|
api_version = {"identity": "2.0"}
|
||||||
|
|
||||||
identity_client.API_VERSIONS = {
|
identity_client.API_VERSIONS = {
|
||||||
"2.0": "tests.identity.test_identity.FakeClient"
|
"2.0": "openstackclient.tests.identity.test_identity.FakeClient"
|
||||||
}
|
}
|
||||||
|
|
||||||
self.cm = clientmanager.ClientManager(token=AUTH_TOKEN,
|
self.cm = clientmanager.ClientManager(token=AUTH_TOKEN,
|
||||||
@@ -17,7 +17,7 @@ import mock
|
|||||||
|
|
||||||
from openstackclient.common import clientmanager
|
from openstackclient.common import clientmanager
|
||||||
from openstackclient.image import client as image_client
|
from openstackclient.image import client as image_client
|
||||||
from tests import utils
|
from openstackclient.tests import utils
|
||||||
|
|
||||||
|
|
||||||
AUTH_TOKEN = "foobar"
|
AUTH_TOKEN = "foobar"
|
||||||
@@ -38,7 +38,7 @@ class TestImage(utils.TestCase):
|
|||||||
api_version = {"image": "2"}
|
api_version = {"image": "2"}
|
||||||
|
|
||||||
image_client.API_VERSIONS = {
|
image_client.API_VERSIONS = {
|
||||||
"2": "tests.image.test_image.FakeClient"
|
"2": "openstackclient.tests.image.test_image.FakeClient"
|
||||||
}
|
}
|
||||||
|
|
||||||
self.cm = clientmanager.ClientManager(token=AUTH_TOKEN,
|
self.cm = clientmanager.ClientManager(token=AUTH_TOKEN,
|
||||||
@@ -17,7 +17,7 @@ import mock
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from openstackclient import shell
|
from openstackclient import shell
|
||||||
from tests import utils
|
from openstackclient.tests import utils
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_USERNAME = "username"
|
DEFAULT_USERNAME = "username"
|
||||||
@@ -16,8 +16,8 @@
|
|||||||
import mock
|
import mock
|
||||||
|
|
||||||
from openstackclient.common import clientmanager
|
from openstackclient.common import clientmanager
|
||||||
|
from openstackclient.tests import utils
|
||||||
from openstackclient.volume import client as volume_client
|
from openstackclient.volume import client as volume_client
|
||||||
from tests import utils
|
|
||||||
|
|
||||||
|
|
||||||
AUTH_TOKEN = "foobar"
|
AUTH_TOKEN = "foobar"
|
||||||
@@ -38,7 +38,7 @@ class TestVolume(utils.TestCase):
|
|||||||
api_version = {"volume": "1"}
|
api_version = {"volume": "1"}
|
||||||
|
|
||||||
volume_client.API_VERSIONS = {
|
volume_client.API_VERSIONS = {
|
||||||
"1": "tests.volume.test_volume.FakeClient"
|
"1": "openstackclient.tests.volume.test_volume.FakeClient"
|
||||||
}
|
}
|
||||||
|
|
||||||
self.cm = clientmanager.ClientManager(token=AUTH_TOKEN,
|
self.cm = clientmanager.ClientManager(token=AUTH_TOKEN,
|
||||||
Reference in New Issue
Block a user