From 111fe32db46783ff0617bb992a777805808088fc Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Wed, 27 Mar 2013 03:44:42 +0100 Subject: [PATCH] Rename functional-tests to tests/functional. - Fix tests by adding pastedeploy to deps. - Move unittests to tests/units along the way. --- .testr.conf | 2 +- {functional_tests => tests/functional}/__init__.py | 0 {functional_tests => tests/functional}/test_middleware_lm.py | 0 tests/{ => units}/__init__.py | 0 tests/{ => units}/base.py | 0 tests/{ => units}/fakes.py | 0 tests/{ => units}/test_accounts.py | 0 tests/{ => units}/test_containers.py | 0 tests/{ => units}/test_filler.py | 0 tests/{ => units}/test_middleware_lm.py | 0 tests/{ => units}/test_objects.py | 0 tests/{ => units}/test_utils.py | 0 tools/pip-requires | 1 + 13 files changed, 2 insertions(+), 1 deletion(-) rename {functional_tests => tests/functional}/__init__.py (100%) rename {functional_tests => tests/functional}/test_middleware_lm.py (100%) rename tests/{ => units}/__init__.py (100%) rename tests/{ => units}/base.py (100%) rename tests/{ => units}/fakes.py (100%) rename tests/{ => units}/test_accounts.py (100%) rename tests/{ => units}/test_containers.py (100%) rename tests/{ => units}/test_filler.py (100%) rename tests/{ => units}/test_middleware_lm.py (100%) rename tests/{ => units}/test_objects.py (100%) rename tests/{ => units}/test_utils.py (100%) diff --git a/.testr.conf b/.testr.conf index 081907d..ef5d319 100644 --- a/.testr.conf +++ b/.testr.conf @@ -1,4 +1,4 @@ [DEFAULT] -test_command=${PYTHON:-python} -m subunit.run discover -t ./ ./tests $LISTOPT $IDOPTION +test_command=${PYTHON:-python} -m subunit.run discover -t ./ ./tests/units/ $LISTOPT $IDOPTION test_id_option=--load-list $IDFILE test_list_option=--list diff --git a/functional_tests/__init__.py b/tests/functional/__init__.py similarity index 100% rename from functional_tests/__init__.py rename to tests/functional/__init__.py diff --git a/functional_tests/test_middleware_lm.py b/tests/functional/test_middleware_lm.py similarity index 100% rename from functional_tests/test_middleware_lm.py rename to tests/functional/test_middleware_lm.py diff --git a/tests/__init__.py b/tests/units/__init__.py similarity index 100% rename from tests/__init__.py rename to tests/units/__init__.py diff --git a/tests/base.py b/tests/units/base.py similarity index 100% rename from tests/base.py rename to tests/units/base.py diff --git a/tests/fakes.py b/tests/units/fakes.py similarity index 100% rename from tests/fakes.py rename to tests/units/fakes.py diff --git a/tests/test_accounts.py b/tests/units/test_accounts.py similarity index 100% rename from tests/test_accounts.py rename to tests/units/test_accounts.py diff --git a/tests/test_containers.py b/tests/units/test_containers.py similarity index 100% rename from tests/test_containers.py rename to tests/units/test_containers.py diff --git a/tests/test_filler.py b/tests/units/test_filler.py similarity index 100% rename from tests/test_filler.py rename to tests/units/test_filler.py diff --git a/tests/test_middleware_lm.py b/tests/units/test_middleware_lm.py similarity index 100% rename from tests/test_middleware_lm.py rename to tests/units/test_middleware_lm.py diff --git a/tests/test_objects.py b/tests/units/test_objects.py similarity index 100% rename from tests/test_objects.py rename to tests/units/test_objects.py diff --git a/tests/test_utils.py b/tests/units/test_utils.py similarity index 100% rename from tests/test_utils.py rename to tests/units/test_utils.py diff --git a/tools/pip-requires b/tools/pip-requires index 166bc48..33628ff 100644 --- a/tools/pip-requires +++ b/tools/pip-requires @@ -6,3 +6,4 @@ python-dateutil netifaces python-keystoneclient eventlet +pastedeploy>=1.3.3