Fix structure of unit tests in oslo.messaging (part 1)
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_<name_of_testing_module>.py Change-Id: Ie13d1b709e863f6a9babaaa2bf1e042ef9251671
This commit is contained in:
parent
68f8857f30
commit
3f9fc44bc6
0
tests/notify/__init__.py
Normal file
0
tests/notify/__init__.py
Normal file
@ -15,7 +15,7 @@ import mock
|
||||
|
||||
from oslo import messaging
|
||||
from oslo.messaging.notify import log_handler
|
||||
from tests import test_notifier
|
||||
from tests.notify import test_notifier
|
||||
from tests import utils as test_utils
|
||||
|
||||
|
@ -28,7 +28,7 @@ import testtools
|
||||
|
||||
from oslo import messaging
|
||||
from oslo.messaging.openstack.common import timeutils
|
||||
from tests import test_notifier
|
||||
from tests.notify import test_notifier
|
||||
from tests import utils as test_utils
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user