Skip to content

Commit c32823c

Browse files
authored
tests: Add a smoke test for r.colors (#6474)
To test that color tables are built and that r.colors can access them, this adds a simple smoke test which fails if a color table file is not found. This supports testing of changes in paths in #5630.
1 parent 74505e2 commit c32823c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import pytest
2+
3+
4+
@pytest.mark.parametrize("color", ["viridis", "grey", "srtm_percent"])
5+
def test_set_color_table(session_tools, color):
6+
"""Check that we can set color table (smoke test)"""
7+
session_tools.r_mapcalc(expression="raster = row() + col()")
8+
session_tools.r_colors(map="raster", color=color)

0 commit comments

Comments
 (0)