Skip to content

Commit

Permalink
check expected file type #424
Browse files Browse the repository at this point in the history
  • Loading branch information
bossie committed Jul 16, 2024
1 parent eacebae commit 17ce2dd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/test_batch_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import geopandas as gpd
import pystac
import pytest
import rasterio

from openeo.util import ensure_dir
from openeo_driver.testing import DictSubSet
Expand Down Expand Up @@ -968,8 +969,10 @@ def test_multiple_top_level_side_effects(tmp_path, caplog):
dependencies=[],
)

output_files = os.listdir(tmp_path)

assert "openEO_2024-07-15Z.tif" in output_files
assert "openEO.nc" in output_files
assert "intermediate result" in caplog.messages

with rasterio.open(tmp_path / "openEO_2024-07-15Z.tif") as f:
assert f.driver == "GTiff"

with rasterio.open(tmp_path / "openEO.nc") as f:
assert f.driver == "netCDF"

0 comments on commit 17ce2dd

Please sign in to comment.