Skip to content

Commit 4c7b8a3

Browse files
authored
TST: update expected value (#242)
* TST: update expected value * more * update macos versions
1 parent 883da27 commit 4c7b8a3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
- ci/envs/311-conda-forge.yaml
2626
- ci/envs/312-latest-conda-forge.yaml
2727
include:
28-
- os: macos-latest
28+
- os: macos-13
2929
environment-file: ci/envs/312-latest-conda-forge.yaml
30-
- os: macos-14 # apple silicon
30+
- os: macos-latest # apple silicon
3131
environment-file: ci/envs/312-latest-conda-forge.yaml
3232
- os: windows-latest
3333
environment-file: ci/envs/312-latest-conda-forge.yaml

tests/test_cx.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ def test_add_basemap_query():
354354
ax_extent = (x1, x2, y1, y2)
355355
assert ax.axis() == ax_extent
356356

357-
assert ax.images[0].get_array().sum() == 64691220
357+
assert ax.images[0].get_array().sum() == 64685390
358358
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)
361361

362362

363363
@pytest.mark.network
@@ -531,7 +531,7 @@ def test_add_basemap_overlay():
531531
assert_array_almost_equal(ax.images[0].get_array().mean(), 217.8021049, decimal=0)
532532

533533
# 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)
535535
assert ax.images[1].get_array().shape == (256, 256, 4)
536536
assert_array_almost_equal(ax.images[1].get_array().mean(), 6.1157760, decimal=0)
537537

@@ -546,7 +546,7 @@ def test_add_basemap_overlay():
546546

547547
# check that z-order of overlay is higher than that of base layer
548548
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)
550550
assert ax.images[1].get_array().sum() == pytest.approx(57095515, rel=0.1)
551551

552552

0 commit comments

Comments
 (0)