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

Function test_datetime

tests/test_io/test_to_from_plotly_json.py:175–180  ·  view source on GitHub ↗
(datetime_value, engine, pretty)

Source from the content-addressed store, hash-verified

173
174
175def test_datetime(datetime_value, engine, pretty):
176 value = build_test_dict(datetime_value)
177 result = pio.to_json_plotly(value, engine=engine, pretty=pretty)
178 expected = build_test_dict_string('"{}"'.format(isoformat_test(datetime_value)))
179 assert result == expected
180 check_roundtrip(result, engine=engine, pretty=pretty)
181
182
183def test_datetime_arrays(datetime_array, engine, pretty):

Callers

nothing calls this directly

Calls 5

build_test_dictFunction · 0.85
build_test_dict_stringFunction · 0.85
isoformat_testFunction · 0.85
check_roundtripFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected