Skip to content

Commit f993d07

Browse files
committed
update test layout subplots
1 parent 3719c68 commit f993d07

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_layout_subplots.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_initial_access_subplots(self):
2222
self.assertEqual(self.layout.yaxis, go.layout.YAxis())
2323
self.assertEqual(self.layout["geo"], go.layout.Geo())
2424
self.assertEqual(self.layout.scene, go.layout.Scene())
25-
self.assertEqual(self.layout.mapbox, go.layout.Mapbox())
25+
self.assertEqual(self.layout.map, go.layout.Map())
2626
self.assertEqual(self.layout.polar, go.layout.Polar())
2727

2828
# Subplot ids of 1 should be mapped to the same object as the base
@@ -31,7 +31,7 @@ def test_initial_access_subplots(self):
3131
self.assertIs(self.layout.yaxis, self.layout.yaxis1)
3232
self.assertIs(self.layout.geo, self.layout.geo1)
3333
self.assertIs(self.layout.scene, self.layout.scene1)
34-
self.assertIs(self.layout.mapbox, self.layout.mapbox1)
34+
self.assertIs(self.layout.map, self.layout.map1)
3535
self.assertIs(self.layout.polar, self.layout.polar1)
3636

3737
def test_initial_access_subplot2(self):
@@ -147,8 +147,8 @@ def test_subplot_objs_have_proper_type(self):
147147
self.layout.scene6 = {}
148148
self.assertIsInstance(self.layout.scene6, go.layout.Scene)
149149

150-
self.layout.mapbox7 = {}
151-
self.assertIsInstance(self.layout.mapbox7, go.layout.Mapbox)
150+
self.layout.map7 = {}
151+
self.assertIsInstance(self.layout.map7, go.layout.Map)
152152

153153
self.layout.polar8 = {}
154154
self.assertIsInstance(self.layout.polar8, go.layout.Polar)
@@ -164,7 +164,7 @@ def test_subplot_props_in_constructor(self):
164164
geo4=go.layout.Geo(bgcolor="blue"),
165165
ternary5=go.layout.Ternary(sum=120),
166166
scene6=go.layout.Scene(dragmode="zoom"),
167-
mapbox7=go.layout.Mapbox(zoom=2),
167+
map7=go.layout.Map(zoom=2),
168168
polar8=go.layout.Polar(sector=[0, 90]),
169169
)
170170

@@ -173,7 +173,7 @@ def test_subplot_props_in_constructor(self):
173173
self.assertEqual(layout.geo4.bgcolor, "blue")
174174
self.assertEqual(layout.ternary5.sum, 120)
175175
self.assertEqual(layout.scene6.dragmode, "zoom")
176-
self.assertEqual(layout.mapbox7.zoom, 2)
176+
self.assertEqual(layout.map.zoom, 2)
177177
self.assertEqual(layout.polar8.sector, (0, 90))
178178

179179
def test_create_subplot_with_update(self):
@@ -185,7 +185,7 @@ def test_create_subplot_with_update(self):
185185
geo4=go.layout.Geo(bgcolor="blue"),
186186
ternary5=go.layout.Ternary(sum=120),
187187
scene6=go.layout.Scene(dragmode="zoom"),
188-
mapbox7=go.layout.Mapbox(zoom=2),
188+
map7=go.layout.Map(zoom=2),
189189
polar8=go.layout.Polar(sector=[0, 90]),
190190
)
191191

@@ -195,7 +195,7 @@ def test_create_subplot_with_update(self):
195195
self.assertEqual(self.layout.geo4.bgcolor, "blue")
196196
self.assertEqual(self.layout.ternary5.sum, 120)
197197
self.assertEqual(self.layout.scene6.dragmode, "zoom")
198-
self.assertEqual(self.layout.mapbox7.zoom, 2)
198+
self.assertEqual(self.layout.map7.zoom, 2)
199199
self.assertEqual(self.layout.polar8.sector, (0, 90))
200200

201201
def test_create_subplot_with_update_dict(self):
@@ -208,7 +208,7 @@ def test_create_subplot_with_update_dict(self):
208208
"geo4": {"bgcolor": "blue"},
209209
"ternary5": {"sum": 120},
210210
"scene6": {"dragmode": "zoom"},
211-
"mapbox7": {"zoom": 2},
211+
"map7": {"zoom": 2},
212212
"polar8": {"sector": [0, 90]},
213213
}
214214
)
@@ -219,7 +219,7 @@ def test_create_subplot_with_update_dict(self):
219219
self.assertEqual(self.layout.geo4.bgcolor, "blue")
220220
self.assertEqual(self.layout.ternary5.sum, 120)
221221
self.assertEqual(self.layout.scene6.dragmode, "zoom")
222-
self.assertEqual(self.layout.mapbox7.zoom, 2)
222+
self.assertEqual(self.layout.map7.zoom, 2)
223223
self.assertEqual(self.layout.polar8.sector, (0, 90))
224224

225225
def test_bug_1462(self):

0 commit comments

Comments
 (0)