Skip to content

Commit b1c2880

Browse files
committed
ordered keys for testing
1 parent d8c379f commit b1c2880

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plotly/tests/test_optional/test_utils/test_utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def test_figure_json_encoding():
4040

4141
js1 = json.dumps(s1, cls=utils._plotlyJSONEncoder, sort_keys=True)
4242
js2 = json.dumps(s2, cls=utils._plotlyJSONEncoder, sort_keys=True)
43-
assert(js1 == '{"y": [1, 2, 3], "x": [1, 2, 3], "z": [1, "A", "2014-01-05"], "type": "scatter3d"}')
44-
assert(js2 == '{"x": [1, 2, 3], "type": "scatter"}')
43+
44+
assert(js1 == '{"type": "scatter3d", "x": [1, 2, 3], '+
45+
'"y": [1, 2, 3], "z": [1, "A", "2014-01-05"]}')
46+
assert(js2 == '{"type": "scatter", "x": [1, 2, 3]}')
4547
json.dumps(data, cls=utils._plotlyJSONEncoder, sort_keys=True)
4648
json.dumps(figure, cls=utils._plotlyJSONEncoder, sort_keys=True)

0 commit comments

Comments
 (0)