Import 'decorators' from tempest_lib instead of 'test' from tempest

Change-Id: I3739193a4d1ef933fb339fb92e17609df02baee4
This commit is contained in:
Anastasia Kuznetsova
2015-02-12 19:09:27 +04:00
parent f0f9da2285
commit 9a85ed6cf7

View File

@@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from tempest import test
from tempest_lib import decorators
from tempest_lib import exceptions
from mistralclient.tests.functional.cli import base
@@ -588,7 +588,7 @@ class EnvironmentCLITests(base_v2.MistralClientTestBase):
self.assertEqual(env_created_at.split('.')[0], updated_env_created_at)
self.assertIsNotNone(updated_env_updated_at)
@test.skip_because(bug="1418545")
@decorators.skip_because(bug="1418545")
def test_environment_update_work_as_create(self):
env = self.mistral_admin('environment-update', params='env.yaml')
env_name = self.get_value_of_field(env, 'Name')