def root(raml): config_file = os.path.join(EXAMPLES, "twitter-config.ini") config = setup_config(config_file) return pw.create_root(raml, config)
def root(): raml_file = os.path.join(EXAMPLES + "complete-valid-example.raml") loaded_raml_file = load_file(raml_file) config = setup_config(EXAMPLES + "test-config.ini") return pw.create_root(loaded_raml_file, config)
def root(): raml_file = os.path.join(EXAMPLES, "github.raml") loaded_raml_file = load_file(raml_file) config_file = os.path.join(EXAMPLES, "github-config.ini") config = setup_config(config_file) return pw.create_root(loaded_raml_file, config)