~rakhmerov/python-mistralclient/master

« back to all changes in this revision

Viewing changes to mistralclient/tests/unit/v2/test_cli_tasks.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:
21
21
 
22
22
from mistralclient.api.v2 import tasks
23
23
from mistralclient.commands.v2 import tasks as task_cmd
24
 
from mistralclient.commands.v2.tasks import TaskFormatter
25
24
from mistralclient.tests.unit import base
26
25
 
27
26
TASK_DICT = {
62
61
        self.assertEqual([EXPECTED_TASK_RESULT], result[1])
63
62
        self.assertEqual(
64
63
            self.client.tasks.list.call_args[1]["fields"],
65
 
            TaskFormatter.COLUMN_FIELD_NAMES
 
64
            task_cmd.TaskFormatter.COLUMN_FIELD_NAMES
66
65
        )
67
66
 
68
67
    def test_list_with_workflow_execution(self):