@@ -22,7 +22,7 @@ def test_initial_access_subplots(self):
22
22
self .assertEqual (self .layout .yaxis , go .layout .YAxis ())
23
23
self .assertEqual (self .layout ["geo" ], go .layout .Geo ())
24
24
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 ())
26
26
self .assertEqual (self .layout .polar , go .layout .Polar ())
27
27
28
28
# Subplot ids of 1 should be mapped to the same object as the base
@@ -31,7 +31,7 @@ def test_initial_access_subplots(self):
31
31
self .assertIs (self .layout .yaxis , self .layout .yaxis1 )
32
32
self .assertIs (self .layout .geo , self .layout .geo1 )
33
33
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 )
35
35
self .assertIs (self .layout .polar , self .layout .polar1 )
36
36
37
37
def test_initial_access_subplot2 (self ):
@@ -147,8 +147,8 @@ def test_subplot_objs_have_proper_type(self):
147
147
self .layout .scene6 = {}
148
148
self .assertIsInstance (self .layout .scene6 , go .layout .Scene )
149
149
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 )
152
152
153
153
self .layout .polar8 = {}
154
154
self .assertIsInstance (self .layout .polar8 , go .layout .Polar )
@@ -164,7 +164,7 @@ def test_subplot_props_in_constructor(self):
164
164
geo4 = go .layout .Geo (bgcolor = "blue" ),
165
165
ternary5 = go .layout .Ternary (sum = 120 ),
166
166
scene6 = go .layout .Scene (dragmode = "zoom" ),
167
- mapbox7 = go .layout .Mapbox (zoom = 2 ),
167
+ map7 = go .layout .Map (zoom = 2 ),
168
168
polar8 = go .layout .Polar (sector = [0 , 90 ]),
169
169
)
170
170
@@ -173,7 +173,7 @@ def test_subplot_props_in_constructor(self):
173
173
self .assertEqual (layout .geo4 .bgcolor , "blue" )
174
174
self .assertEqual (layout .ternary5 .sum , 120 )
175
175
self .assertEqual (layout .scene6 .dragmode , "zoom" )
176
- self .assertEqual (layout .mapbox7 .zoom , 2 )
176
+ self .assertEqual (layout .map .zoom , 2 )
177
177
self .assertEqual (layout .polar8 .sector , (0 , 90 ))
178
178
179
179
def test_create_subplot_with_update (self ):
@@ -185,7 +185,7 @@ def test_create_subplot_with_update(self):
185
185
geo4 = go .layout .Geo (bgcolor = "blue" ),
186
186
ternary5 = go .layout .Ternary (sum = 120 ),
187
187
scene6 = go .layout .Scene (dragmode = "zoom" ),
188
- mapbox7 = go .layout .Mapbox (zoom = 2 ),
188
+ map7 = go .layout .Map (zoom = 2 ),
189
189
polar8 = go .layout .Polar (sector = [0 , 90 ]),
190
190
)
191
191
@@ -195,7 +195,7 @@ def test_create_subplot_with_update(self):
195
195
self .assertEqual (self .layout .geo4 .bgcolor , "blue" )
196
196
self .assertEqual (self .layout .ternary5 .sum , 120 )
197
197
self .assertEqual (self .layout .scene6 .dragmode , "zoom" )
198
- self .assertEqual (self .layout .mapbox7 .zoom , 2 )
198
+ self .assertEqual (self .layout .map7 .zoom , 2 )
199
199
self .assertEqual (self .layout .polar8 .sector , (0 , 90 ))
200
200
201
201
def test_create_subplot_with_update_dict (self ):
@@ -208,7 +208,7 @@ def test_create_subplot_with_update_dict(self):
208
208
"geo4" : {"bgcolor" : "blue" },
209
209
"ternary5" : {"sum" : 120 },
210
210
"scene6" : {"dragmode" : "zoom" },
211
- "mapbox7 " : {"zoom" : 2 },
211
+ "map7 " : {"zoom" : 2 },
212
212
"polar8" : {"sector" : [0 , 90 ]},
213
213
}
214
214
)
@@ -219,7 +219,7 @@ def test_create_subplot_with_update_dict(self):
219
219
self .assertEqual (self .layout .geo4 .bgcolor , "blue" )
220
220
self .assertEqual (self .layout .ternary5 .sum , 120 )
221
221
self .assertEqual (self .layout .scene6 .dragmode , "zoom" )
222
- self .assertEqual (self .layout .mapbox7 .zoom , 2 )
222
+ self .assertEqual (self .layout .map7 .zoom , 2 )
223
223
self .assertEqual (self .layout .polar8 .sector , (0 , 90 ))
224
224
225
225
def test_bug_1462 (self ):
0 commit comments