def add_parameters_to_test_project(profile, project='py_common', dictionary=None): if type(project) not in [dict, OrderedDict]: project = project_processor.get_project_by_name(project_name=project) print('project: ') print(project) print('') print('') project_profile = generic_processor.get_fully_qualified_profile_from_filesystem( profile) profile_path = project_profile['profiles'] + '/' + profile setup = parameter_processor.add_parameters_to_project_from_filesystem( profile_path, project, full_path=True, profile_name=profile, profile_dictionary=dictionary) print('mars profile: ') print(setup['profile']) print('') print('mars structures: ') print(setup['structures']) print('') print('mars templates: ') print(setup['templates']) print('') print('mars translators: ') print(setup['translators']) print('')
def add_parameters_to_test_harness(profile, harness='py_common', dictionary=None): if type(harness) not in [dict, OrderedDict]: harness = get_harness_by_name(harness_name=harness) print 'harness: ' print harness print '' print '' harness_profile = generic_processor.get_fully_qualified_profile_from_filesystem(profile) profile_path = harness_profile['profiles'] + '/' + profile setup = parameter_processor.add_parameters_to_harness_from_filesystem(profile_path, harness, full_path=True, profile_name=profile, profile_dictionary=dictionary) print 'mars profile: ' print setup['profile'] print '' print 'mars structures: ' print setup['structures'] print '' print 'mars templates: ' print setup['templates'] print '' print 'mars translators: ' print setup['translators'] print ''
def get_profile_dictionary(profile='standard'): """Assembles a complete profile dictionary. """ dictionary = generic_processor.get_fully_qualified_profile_from_filesystem(profile) return dictionary
def get_profile_dictionary(profile): profile_dictionary = generic_processor.get_fully_qualified_profile_from_filesystem(profile) return profile_dictionary
def get_profile_dictionary(profile='standard'): """Assembles a complete profile dictionary. """ dictionary = generic_processor.get_fully_qualified_profile_from_filesystem( profile) return dictionary