def get_parameters(runtime, environment):
    """ Set up parameters dictionary for format() substitution """
    parameters = {
        'runtime': runtime,
        'environment': environment
    }
    if environment is None:
        parameters['environment'] = 'codetools-test-{runtime}'.format(
            **parameters
        )
    return parameters