from common_fixtures import *  # NOQA

binding_input = {"services":
                  {"service_1":
                   {"labels":
                    {"label_1": "value_1"},
                    "ports": [],
                    "scale": "scale_1"
                    }
                   }
                  }


def _create_stack(client):
    env = client.create_stack(name=random_str(), binding=binding_input)
    env = client.wait_success(env)
    return env


def test_create_stack_binding(client):
    env = _create_stack(client)
    assert env.binding == binding_input

from common_fixtures import *  # NOQA

binding_input = {
    "services":
        {
            "service_1":
                {
                    "labels": {"label_1": "value_1"},
                    "ports": [],
                    "scale": "scale_1"
                }
        }
    }


def _create_stack(client):
    env = client.create_stack(name=random_str(), binding=binding_input)
    env = client.wait_success(env)
    return env


def test_create_stack_binding(client):
    env = _create_stack(client)
    assert env.binding == binding_input

Fix flake8