MCPcopy Index your code
hub / github.com/plotly/plotly.py / build_json_opts

Function build_json_opts

tests/test_io/test_to_from_plotly_json.py:21–27  ·  view source on GitHub ↗
(pretty=False)

Source from the content-addressed store, hash-verified

19
20# Testing helper
21def build_json_opts(pretty=False):
22 opts = {"sort_keys": True}
23 if pretty:
24 opts["indent"] = 2
25 else:
26 opts["separators"] = (",", ":")
27 return opts
28
29
30def to_json_test(value, pretty=False):

Callers 1

to_json_testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected