Remove the deprecated tempest.test.attr

[1] moves the attr decorator from test.py to tempest/lib. So, all the
references to tempest.test has to be moved to tempest.lib.decorator.

[2] https://review.openstack.org/#/c/456236/

Change-Id: I26a45e54dbb58bd975a403eb62fdba0dde165fa6
This commit is contained in:
Ngo Quoc Cuong 2017-05-22 09:45:09 +07:00
parent 3f2480027d
commit b4ebcb676f
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from tempest import test
from tempest.lib import decorators
from tricircle.tempestplugin.tests.api import base
@ -23,7 +23,7 @@ class TestTricircleSample(base.BaseTricircleTest):
def resource_setup(cls):
super(TestTricircleSample, cls).resource_setup()
@test.attr(type="smoke")
@decorators.attr(type="smoke")
def test_sample(self):
self.assertEqual('Tricircle Sample Test!', 'Tricircle Sample Test!')