From ac0fc7f0112811b2efa2dd337e9a584491dd3ff7 Mon Sep 17 00:00:00 2001 From: Boris Pavlovic Date: Wed, 25 Jun 2014 13:01:31 +0400 Subject: [PATCH] Fix structure of unit tests in oslo.messaging (part 2) Even in case of libraries and when they are not big like nova. It is better to use next rules: 1) structure of tests directory is the same as a root of project Tests directory will be well organized, and it will be simple to find where to write tests 2) names for end modules should be test_.py Change-Id: I069121c5f32bbe51c6795e51c23ff3630fcd43e2 --- tests/executors/__init__.py | 0 tests/{ => executors}/test_executor.py | 0 tests/rpc/__init__.py | 0 tests/{test_rpc_client.py => rpc/test_client.py} | 0 tests/{test_rpc_dispatcher.py => rpc/test_dispatcher.py} | 0 tests/{test_rpc_server.py => rpc/test_server.py} | 0 6 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/executors/__init__.py rename tests/{ => executors}/test_executor.py (100%) create mode 100644 tests/rpc/__init__.py rename tests/{test_rpc_client.py => rpc/test_client.py} (100%) rename tests/{test_rpc_dispatcher.py => rpc/test_dispatcher.py} (100%) rename tests/{test_rpc_server.py => rpc/test_server.py} (100%) diff --git a/tests/executors/__init__.py b/tests/executors/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/test_executor.py b/tests/executors/test_executor.py similarity index 100% rename from tests/test_executor.py rename to tests/executors/test_executor.py diff --git a/tests/rpc/__init__.py b/tests/rpc/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/test_rpc_client.py b/tests/rpc/test_client.py similarity index 100% rename from tests/test_rpc_client.py rename to tests/rpc/test_client.py diff --git a/tests/test_rpc_dispatcher.py b/tests/rpc/test_dispatcher.py similarity index 100% rename from tests/test_rpc_dispatcher.py rename to tests/rpc/test_dispatcher.py diff --git a/tests/test_rpc_server.py b/tests/rpc/test_server.py similarity index 100% rename from tests/test_rpc_server.py rename to tests/rpc/test_server.py