From 3b46d27c90aa6289724f4c137a0838c89d116b62 Mon Sep 17 00:00:00 2001 From: Jordan Pittier Date: Wed, 12 Apr 2017 16:17:28 +0200 Subject: Move the `attr` decorator from test.py to tempest/lib I think it's a good idea to move all utility decorators into tempest/lib/decorators.py. This patch does that for the `attr` decorator. Change-Id: Iaafbb112b6eee458089cc49918359a8a8d0485e2 --- tempest/api/identity/admin/v3/test_regions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tempest/api/identity/admin/v3/test_regions.py') diff --git a/tempest/api/identity/admin/v3/test_regions.py b/tempest/api/identity/admin/v3/test_regions.py index 56ee496c0..ac550a73a 100644 --- a/tempest/api/identity/admin/v3/test_regions.py +++ b/tempest/api/identity/admin/v3/test_regions.py @@ -17,7 +17,6 @@ from tempest.api.identity import base from tempest.lib.common.utils import data_utils from tempest.lib.common.utils import test_utils from tempest.lib import decorators -from tempest import test class RegionsTestJSON(base.BaseIdentityV3AdminTest): @@ -79,7 +78,7 @@ class RegionsTestJSON(base.BaseIdentityV3AdminTest): regions_list = [r['id'] for r in body] self.assertNotIn(region['id'], regions_list) - @test.attr(type='smoke') + @decorators.attr(type='smoke') @decorators.idempotent_id('2c12c5b5-efcf-4aa5-90c5-bff1ab0cdbe2') def test_create_region_with_specific_id(self): # Create a region with a specific id -- cgit v1.2.1