integration-tests/environment.py
def before_all(context):
    """
    before_all is an Behave environmental control. This function is run before
    the integration tests start. It appends a UUID to the project_code that
    is used by Sceptre when creating resources. This ensures that the
    integration tests can be run in parallel without stack name clashes.
    """
    build_uuid = uuid.uuid1().hex
    context.environment_path_a = "test-env-a"
    context.environment_path_b = "test-env-b"
    context.project_code = "sceptre-integration-tests-{0}".format(
        build_uuid
    )
    print("The UUID for this build is '{0}'.".format(build_uuid))

    config_file = os.path.abspath(os.path.join(
        os.path.dirname(__file__),
        "config",
        "config.yaml"
    ))

    with open(config_file, "r") as f:
        config = yaml.load(f)
    config["project_code"] = context.project_code
    with open(config_file, "w") as f:
        yaml.dump(config, f, default_flow_style=False)

    before_all is an Behave environmental control. This function is run before
    the integration tests start. It appends a UUID to the project_code that
    is used by Sceptre when creating resources. This ensures that the
    integration tests can be run in parallel without stack name clashes.
    
before_all is an Behave environmental control. This function is run before
the integration tests start. It appends a UUID to the project_code that
is used by Sceptre when creating resources. This ensures that the
integration tests can be run in parallel without stack name clashes.
before_all is an Behave environmental control . This function is run before the integration tests start . It appends a UUID to the project_code that is used by Sceptre when creating resources . This ensures that the integration tests can be run in parallel without stack name clashes .
def before_all(context):
    build_uuid = uuid.uuid1().hex
    context.environment_path_a = "test-env-a"
    context.environment_path_b = "test-env-b"
    context.project_code = "sceptre-integration-tests-{0}".format(
        build_uuid
    )
    print("The UUID for this build is '{0}'.".format(build_uuid))
    config_file = os.path.abspath(os.path.join(
        os.path.dirname(__file__),
        "config",
        "config.yaml"
    ))
    with open(config_file, "r") as f:
        config = yaml.load(f)
    config["project_code"] = context.project_code
    with open(config_file, "w") as f:
        yaml.dump(config, f, default_flow_style=False)
def before_all ( context ) : build_uuid = uuid . uuid1 ( ) . hex context . environment_path_a = "test-env-a" context . environment_path_b = "test-env-b" context . project_code = "sceptre-integration-tests-{0}" . format ( build_uuid ) print ( "The UUID for this build is '{0}'." . format ( build_uuid ) ) config_file = os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ) , "config" , "config.yaml" ) ) with open ( config_file , "r" ) as f : config = yaml . load ( f ) config [ "project_code" ] = context . project_code with open ( config_file , "w" ) as f : yaml . dump ( config , f , default_flow_style = False )
before_all is an Behave environmental control.
before_all is an Behave environmental control .
"""
    before_all is an Behave environmental control. This function is run before
    the integration tests start. It appends a UUID to the project_code that
    is used by Sceptre when creating resources. This ensures that the
    integration tests can be run in parallel without stack name clashes.
    """
context