@@ -21,7 +21,7 @@ def test_initial_access_subplots(self):
2121 self .assertEqual (self .layout .yaxis , go .layout .YAxis ())
2222 self .assertEqual (self .layout ["geo" ], go .layout .Geo ())
2323 self .assertEqual (self .layout .scene , go .layout .Scene ())
24- self .assertEqual (self .layout .mapbox , go .layout .Mapbox ())
24+ self .assertEqual (self .layout .map , go .layout .Map ())
2525 self .assertEqual (self .layout .polar , go .layout .Polar ())
2626
2727 # Subplot ids of 1 should be mapped to the same object as the base
@@ -30,7 +30,7 @@ def test_initial_access_subplots(self):
3030 self .assertIs (self .layout .yaxis , self .layout .yaxis1 )
3131 self .assertIs (self .layout .geo , self .layout .geo1 )
3232 self .assertIs (self .layout .scene , self .layout .scene1 )
33- self .assertIs (self .layout .mapbox , self .layout .mapbox1 )
33+ self .assertIs (self .layout .map , self .layout .map1 )
3434 self .assertIs (self .layout .polar , self .layout .polar1 )
3535
3636 def test_initial_access_subplot2_1 (self ):
@@ -145,8 +145,8 @@ def test_subplot_objs_have_proper_type(self):
145145 self .layout .scene6 = {}
146146 self .assertIsInstance (self .layout .scene6 , go .layout .Scene )
147147
148- self .layout .mapbox7 = {}
149- self .assertIsInstance (self .layout .mapbox7 , go .layout .Mapbox )
148+ self .layout .map7 = {}
149+ self .assertIsInstance (self .layout .map7 , go .layout .Map )
150150
151151 self .layout .polar8 = {}
152152 self .assertIsInstance (self .layout .polar8 , go .layout .Polar )
@@ -162,7 +162,7 @@ def test_subplot_props_in_constructor(self):
162162 geo4 = go .layout .Geo (bgcolor = "blue" ),
163163 ternary5 = go .layout .Ternary (sum = 120 ),
164164 scene6 = go .layout .Scene (dragmode = "zoom" ),
165- mapbox7 = go .layout .Mapbox (zoom = 2 ),
165+ map7 = go .layout .Map (zoom = 2 ),
166166 polar8 = go .layout .Polar (sector = [0 , 90 ]),
167167 )
168168
@@ -171,7 +171,7 @@ def test_subplot_props_in_constructor(self):
171171 self .assertEqual (layout .geo4 .bgcolor , "blue" )
172172 self .assertEqual (layout .ternary5 .sum , 120 )
173173 self .assertEqual (layout .scene6 .dragmode , "zoom" )
174- self .assertEqual (layout .mapbox7 .zoom , 2 )
174+ self .assertEqual (layout .map7 .zoom , 2 )
175175 self .assertEqual (layout .polar8 .sector , (0 , 90 ))
176176
177177 def test_create_subplot_with_update (self ):
@@ -182,7 +182,7 @@ def test_create_subplot_with_update(self):
182182 geo4 = go .layout .Geo (bgcolor = "blue" ),
183183 ternary5 = go .layout .Ternary (sum = 120 ),
184184 scene6 = go .layout .Scene (dragmode = "zoom" ),
185- mapbox7 = go .layout .Mapbox (zoom = 2 ),
185+ map7 = go .layout .Map (zoom = 2 ),
186186 polar8 = go .layout .Polar (sector = [0 , 90 ]),
187187 )
188188
@@ -192,7 +192,7 @@ def test_create_subplot_with_update(self):
192192 self .assertEqual (self .layout .geo4 .bgcolor , "blue" )
193193 self .assertEqual (self .layout .ternary5 .sum , 120 )
194194 self .assertEqual (self .layout .scene6 .dragmode , "zoom" )
195- self .assertEqual (self .layout .mapbox7 .zoom , 2 )
195+ self .assertEqual (self .layout .map7 .zoom , 2 )
196196 self .assertEqual (self .layout .polar8 .sector , (0 , 90 ))
197197
198198 def test_create_subplot_with_update_dict (self ):
@@ -204,7 +204,7 @@ def test_create_subplot_with_update_dict(self):
204204 "geo4" : {"bgcolor" : "blue" },
205205 "ternary5" : {"sum" : 120 },
206206 "scene6" : {"dragmode" : "zoom" },
207- "mapbox7 " : {"zoom" : 2 },
207+ "map7 " : {"zoom" : 2 },
208208 "polar8" : {"sector" : [0 , 90 ]},
209209 }
210210 )
@@ -215,7 +215,7 @@ def test_create_subplot_with_update_dict(self):
215215 self .assertEqual (self .layout .geo4 .bgcolor , "blue" )
216216 self .assertEqual (self .layout .ternary5 .sum , 120 )
217217 self .assertEqual (self .layout .scene6 .dragmode , "zoom" )
218- self .assertEqual (self .layout .mapbox7 .zoom , 2 )
218+ self .assertEqual (self .layout .map7 .zoom , 2 )
219219 self .assertEqual (self .layout .polar8 .sector , (0 , 90 ))
220220
221221 def test_bug_1462 (self ):
0 commit comments