Skip to content

Commit 67cc021

Browse files
committed
fix update tests to new INFO
1 parent 2aa7b96 commit 67cc021

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

plotly/tests/test_core/test_graph_objs/test_consistency.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010

1111

1212
def test_info_keys_in_key_to_name():
13-
for key in graph_objs.INFO:
13+
for key in graph_objs.INFO.keys():
1414
class_name = graph_objs.KEY_TO_NAME[key]
1515

1616

1717
def test_names_in_name_to_key():
18-
for key in graph_objs.INFO:
18+
for key in graph_objs.INFO.keys():
1919
class_name = graph_objs.KEY_TO_NAME[key]
2020
key_name = graph_objs.NAME_TO_KEY[class_name]
2121

2222

2323
def test_names_in_name_to_class():
24-
for key in graph_objs.INFO:
24+
for key in graph_objs.INFO.keys():
2525
class_name = graph_objs.KEY_TO_NAME[key]
2626
_class = graph_objs._factory(class_name)

plotly/tests/test_core/test_graph_reference/test_key_types.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
def test_style_exists():
1414
checks = True
15-
for obj_key, obj in list(go.INFO.items()):
16-
if obj_key not in ['plotlylist', 'data', 'annotations', 'plotlydict', 'plotlytrace', 'trace']:
17-
for attr_key, attr in list(obj.items()):
18-
if 'type' not in attr:
15+
for obj, stuff in list(go.INFO.items()):
16+
if obj not in ['plotlylist', 'data', 'annotations', 'plotlydict', 'plotlytrace', 'trace']:
17+
for attr_key, attr in list(stuff['keymeta'].items()):
18+
if 'key_type' not in attr:
1919
checks = False
2020
print(obj_key, attr_key)
2121
if not checks:
22-
raise Exception
22+
raise Exception

0 commit comments

Comments
 (0)