summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-07-02 14:26:25 +0000
committerGerrit Code Review <review@openstack.org>2013-07-02 14:26:25 +0000
commitf18d674efa7be25bc448a4f8993cafa5c196cc1c (patch)
tree77fe0758799efc6c0e660e8e9d9006390ea7c7be
parentb63e8d5241387b6e39690d18914f423c9c4b988a (diff)
parent196daf859b1557fba24dbcf9870d3a834da86916 (diff)
downloadpython-openstackclient-f18d674efa7be25bc448a4f8993cafa5c196cc1c.tar.gz
Merge "Move tests into project package."
-rw-r--r--.testr.conf2
-rw-r--r--openstackclient/tests/__init__.py (renamed from tests/__init__.py)0
-rw-r--r--openstackclient/tests/common/test_clientmanager.py (renamed from tests/common/test_clientmanager.py)2
-rw-r--r--openstackclient/tests/common/test_commandmanager.py (renamed from tests/common/test_commandmanager.py)2
-rw-r--r--openstackclient/tests/common/test_parseractions.py (renamed from tests/common/test_parseractions.py)2
-rw-r--r--openstackclient/tests/compute/__init__.py (renamed from tests/compute/__init__.py)0
-rw-r--r--openstackclient/tests/compute/test_compute.py (renamed from tests/compute/test_compute.py)4
-rw-r--r--openstackclient/tests/identity/__init__.py (renamed from tests/identity/__init__.py)0
-rw-r--r--openstackclient/tests/identity/test_identity.py (renamed from tests/identity/test_identity.py)4
-rw-r--r--openstackclient/tests/image/__init__.py (renamed from tests/image/__init__.py)0
-rw-r--r--openstackclient/tests/image/test_image.py (renamed from tests/image/test_image.py)4
-rw-r--r--openstackclient/tests/test_shell.py (renamed from tests/test_shell.py)2
-rw-r--r--openstackclient/tests/utils.py (renamed from tests/utils.py)0
-rw-r--r--openstackclient/tests/volume/__init__.py (renamed from tests/volume/__init__.py)0
-rw-r--r--openstackclient/tests/volume/test_volume.py (renamed from tests/volume/test_volume.py)4
15 files changed, 13 insertions, 13 deletions
diff --git a/.testr.conf b/.testr.conf
index 2109af6c..d152a5aa 100644
--- a/.testr.conf
+++ b/.testr.conf
@@ -1,4 +1,4 @@
[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_list_option=--list
diff --git a/tests/__init__.py b/openstackclient/tests/__init__.py
index 85ac2501..85ac2501 100644
--- a/tests/__init__.py
+++ b/openstackclient/tests/__init__.py
diff --git a/tests/common/test_clientmanager.py b/openstackclient/tests/common/test_clientmanager.py
index fe99c599..395f6ec3 100644
--- a/tests/common/test_clientmanager.py
+++ b/openstackclient/tests/common/test_clientmanager.py
@@ -14,7 +14,7 @@
#
from openstackclient.common import clientmanager
-from tests import utils
+from openstackclient.tests import utils
class Container(object):
diff --git a/tests/common/test_commandmanager.py b/openstackclient/tests/common/test_commandmanager.py
index f0a0b341..4953c297 100644
--- a/tests/common/test_commandmanager.py
+++ b/openstackclient/tests/common/test_commandmanager.py
@@ -16,7 +16,7 @@
import mock
from openstackclient.common import commandmanager
-from tests import utils
+from openstackclient.tests import utils
class FakeCommand(object):
diff --git a/tests/common/test_parseractions.py b/openstackclient/tests/common/test_parseractions.py
index f48c4d72..705e7e9c 100644
--- a/tests/common/test_parseractions.py
+++ b/openstackclient/tests/common/test_parseractions.py
@@ -16,7 +16,7 @@
import argparse
from openstackclient.common import parseractions
-from tests import utils
+from openstackclient.tests import utils
class TestKeyValueAction(utils.TestCase):
diff --git a/tests/compute/__init__.py b/openstackclient/tests/compute/__init__.py
index ebf59b32..ebf59b32 100644
--- a/tests/compute/__init__.py
+++ b/openstackclient/tests/compute/__init__.py
diff --git a/tests/compute/test_compute.py b/openstackclient/tests/compute/test_compute.py
index 2673f994..9d2061d2 100644
--- a/tests/compute/test_compute.py
+++ b/openstackclient/tests/compute/test_compute.py
@@ -17,7 +17,7 @@ import mock
from openstackclient.common import clientmanager
from openstackclient.compute import client as compute_client
-from tests import utils
+from openstackclient.tests import utils
AUTH_TOKEN = "foobar"
@@ -37,7 +37,7 @@ class TestCompute(utils.TestCase):
api_version = {"compute": "2"}
compute_client.API_VERSIONS = {
- "2": "tests.compute.test_compute.FakeClient"
+ "2": "openstackclient.tests.compute.test_compute.FakeClient"
}
self.cm = clientmanager.ClientManager(token=AUTH_TOKEN,
diff --git a/tests/identity/__init__.py b/openstackclient/tests/identity/__init__.py
index ebf59b32..ebf59b32 100644
--- a/tests/identity/__init__.py
+++ b/openstackclient/tests/identity/__init__.py
diff --git a/tests/identity/test_identity.py b/openstackclient/tests/identity/test_identity.py
index 52bbd222..04bbd20f 100644
--- a/tests/identity/test_identity.py
+++ b/openstackclient/tests/identity/test_identity.py
@@ -15,7 +15,7 @@
from openstackclient.common import clientmanager
from openstackclient.identity import client as identity_client
-from tests import utils
+from openstackclient.tests import utils
AUTH_TOKEN = "foobar"
@@ -35,7 +35,7 @@ class TestIdentity(utils.TestCase):
api_version = {"identity": "2.0"}
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,
diff --git a/tests/image/__init__.py b/openstackclient/tests/image/__init__.py
index ebf59b32..ebf59b32 100644
--- a/tests/image/__init__.py
+++ b/openstackclient/tests/image/__init__.py
diff --git a/tests/image/test_image.py b/openstackclient/tests/image/test_image.py
index 60b21429..f4c8d72e 100644
--- a/tests/image/test_image.py
+++ b/openstackclient/tests/image/test_image.py
@@ -17,7 +17,7 @@ import mock
from openstackclient.common import clientmanager
from openstackclient.image import client as image_client
-from tests import utils
+from openstackclient.tests import utils
AUTH_TOKEN = "foobar"
@@ -38,7 +38,7 @@ class TestImage(utils.TestCase):
api_version = {"image": "2"}
image_client.API_VERSIONS = {
- "2": "tests.image.test_image.FakeClient"
+ "2": "openstackclient.tests.image.test_image.FakeClient"
}
self.cm = clientmanager.ClientManager(token=AUTH_TOKEN,
diff --git a/tests/test_shell.py b/openstackclient/tests/test_shell.py
index d0eb5b0d..f479b11e 100644
--- a/tests/test_shell.py
+++ b/openstackclient/tests/test_shell.py
@@ -17,7 +17,7 @@ import mock
import os
from openstackclient import shell
-from tests import utils
+from openstackclient.tests import utils
DEFAULT_USERNAME = "username"
diff --git a/tests/utils.py b/openstackclient/tests/utils.py
index 3e24ff4a..3e24ff4a 100644
--- a/tests/utils.py
+++ b/openstackclient/tests/utils.py
diff --git a/tests/volume/__init__.py b/openstackclient/tests/volume/__init__.py
index ebf59b32..ebf59b32 100644
--- a/tests/volume/__init__.py
+++ b/openstackclient/tests/volume/__init__.py
diff --git a/tests/volume/test_volume.py b/openstackclient/tests/volume/test_volume.py
index 8c60dd12..548fbf74 100644
--- a/tests/volume/test_volume.py
+++ b/openstackclient/tests/volume/test_volume.py
@@ -16,8 +16,8 @@
import mock
from openstackclient.common import clientmanager
+from openstackclient.tests import utils
from openstackclient.volume import client as volume_client
-from tests import utils
AUTH_TOKEN = "foobar"
@@ -38,7 +38,7 @@ class TestVolume(utils.TestCase):
api_version = {"volume": "1"}
volume_client.API_VERSIONS = {
- "1": "tests.volume.test_volume.FakeClient"
+ "1": "openstackclient.tests.volume.test_volume.FakeClient"
}
self.cm = clientmanager.ClientManager(token=AUTH_TOKEN,