Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_no_parameter_returns_default_options(self):
opt = options.normalize_options()
assert opt is not options.DEFAULT_OPTIONS
for k, v in options.DEFAULT_OPTIONS.items():
assert k in opt
assert opt[k] == v
def test_no_parameter_returns_default_options(self):
opt = options.normalize_options()
assert opt is not options.DEFAULT_OPTIONS
for k, v in options.DEFAULT_OPTIONS.items():
assert k in opt
assert opt[k] == v
def add_model_cli_options(parser):
parser.add_argument(
"--output-format",
help="format of the output model (default: %s)" % DEFAULT_OPTIONS["output_format"], # noqa
metavar="{glb,gltf}",
choices=["glb", "gltf"],
default=DEFAULT_OPTIONS["output_format"]
)
parser.add_argument(
"--no-graph-optimization",
help="disable empty graph nodes merging",
default=DEFAULT_OPTIONS["no_graph_optimization"],
action="store_true"
)
parser.add_argument(
"--no-meshes-optimization",
help="disable meshes optimization",
default=DEFAULT_OPTIONS["no_meshes_optimization"],
action="store_true"
)