~rakhmerov/python-mistralclient/master

« back to all changes in this revision

Viewing changes to mistralclient/tests/unit/v2/test_cli_action_execs.py

  • Committer: Nguyen Hung Phuong
  • Date: 2018-02-21 10:46:28 UTC
  • Revision ID: git-v1:8857acc61485c78a9e6f21c228d68050e8a7dadb
Clean imports in code

In some part in the code we import objects. In the Openstack style guidelines
they recommend to import only modules. [1]: "Do not import objects, only modules".

[1] https://docs.openstack.org/hacking/0.10.3/

Change-Id: I90ae12639be39b72bac7907cbd71182f44dae02d

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import json
19
19
import sys
20
20
 
21
 
from six import StringIO
 
21
import six
22
22
 
23
23
import mock
24
24
 
160
160
 
161
161
        # Redirect the stderr so it doesn't show during tox
162
162
        _stderr = sys.stderr
163
 
        sys.stderr = StringIO()
 
163
        sys.stderr = six.StringIO()
164
164
 
165
165
        for state in states:
166
166
            self.assertRaises(