@@ -354,10 +354,10 @@ def test_add_basemap_query():
354
354
ax_extent = (x1 , x2 , y1 , y2 )
355
355
assert ax .axis () == ax_extent
356
356
357
- assert ax .images [0 ].get_array ().sum () == 64691220
357
+ assert ax .images [0 ].get_array ().sum () == 64685390
358
358
assert ax .images [0 ].get_array ().shape == (256 , 256 , 4 )
359
- assert_array_almost_equal (ax .images [0 ].get_array ()[:, :, :3 ].mean (), 244.03656 )
360
- assert_array_almost_equal (ax .images [0 ].get_array ().mean (), 246.77742 )
359
+ assert_array_almost_equal (ax .images [0 ].get_array ()[:, :, :3 ].mean (), 244.03656 , decimal = 0 )
360
+ assert_array_almost_equal (ax .images [0 ].get_array ().mean (), 246.77742 , decimal = 0 )
361
361
362
362
363
363
@pytest .mark .network
@@ -531,7 +531,7 @@ def test_add_basemap_overlay():
531
531
assert_array_almost_equal (ax .images [0 ].get_array ().mean (), 217.8021049 , decimal = 0 )
532
532
533
533
# check totals on overaly (mostly transparent labels) layer
534
- assert ax .images [1 ].get_array ().sum () == pytest .approx (1603214 , rel = 0.1 )
534
+ assert ax .images [1 ].get_array ().sum () == pytest .approx (1677372 , rel = 0.1 )
535
535
assert ax .images [1 ].get_array ().shape == (256 , 256 , 4 )
536
536
assert_array_almost_equal (ax .images [1 ].get_array ().mean (), 6.1157760 , decimal = 0 )
537
537
@@ -546,7 +546,7 @@ def test_add_basemap_overlay():
546
546
547
547
# check that z-order of overlay is higher than that of base layer
548
548
assert ax .images [0 ].zorder > ax .images [1 ].zorder
549
- assert ax .images [0 ].get_array ().sum () == pytest .approx (1603214 , rel = 0.1 )
549
+ assert ax .images [0 ].get_array ().sum () == pytest .approx (1677372 , rel = 0.1 )
550
550
assert ax .images [1 ].get_array ().sum () == pytest .approx (57095515 , rel = 0.1 )
551
551
552
552
0 commit comments