From 12afdb896541b72385e7e5586b739cf4c8661b7c Mon Sep 17 00:00:00 2001 From: Jeremy Liu Date: Sat, 1 Apr 2017 19:32:26 +0800 Subject: [PATCH] Correct the module path for decorators The import path of decorators is not correct, this patch fixes that. Change-Id: I4eb09829c4ea787c013cb6061b0ebbc665125b10 Closes-Bug: #1678465 --- tempest/lib/cmd/check_uuid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tempest/lib/cmd/check_uuid.py b/tempest/lib/cmd/check_uuid.py index eafde44414..e911776fbf 100755 --- a/tempest/lib/cmd/check_uuid.py +++ b/tempest/lib/cmd/check_uuid.py @@ -29,7 +29,7 @@ import six.moves.urllib.parse as urlparse DECORATOR_MODULE = 'decorators' DECORATOR_NAME = 'idempotent_id' DECORATOR_IMPORT = 'tempest.%s' % DECORATOR_MODULE -IMPORT_LINE = 'from tempest import %s' % DECORATOR_MODULE +IMPORT_LINE = 'from tempest.lib import %s' % DECORATOR_MODULE DECORATOR_TEMPLATE = "@%s.%s('%%s')" % (DECORATOR_MODULE, DECORATOR_NAME) UNIT_TESTS_EXCLUDE = 'tempest.tests'