Skip to content

Commit 6bee396

Browse files
nialovnmaarnio
authored andcommitted
test(raster_test): move raster path variable from pca_test
1 parent 771efd4 commit 6bee396

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/utilities/raster_test.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from pathlib import Path
2+
13
import numpy as np
24
import rasterio
35
from rasterio import profiles
@@ -8,9 +10,11 @@
810
split_raster_bands,
911
stack_raster_arrays,
1012
)
11-
from tests.exploratory_analyses.pca_test import MULTIBAND_RASTER_PATH
1213
from tests.raster_processing.clip_test import raster_path as SMALL_RASTER_PATH
1314

15+
TESTS_DIR = Path(__file__).parent.parent
16+
MULTIBAND_RASTER_PATH = TESTS_DIR.joinpath("data/remote/small_raster_multiband.tif")
17+
1418

1519
def test_split_raster_bands():
1620
"""Test that splitting a multiband raster into singleband raster works as expected."""

0 commit comments

Comments
 (0)