import json import sys import tempfile import types import unittest from pathlib import Path from unittest.mock import patch from scripts.web import model class ModelCliTests(unittest.TestCase): def test_map_snapshot_is_converted_to_native_sra(self): import numpy as np from scripts.web.terrain import write_map_sra with tempfile.TemporaryDirectory() as directory: root=Path(directory); raw=root/'height.f32'; np.arange(2048,dtype='0.0)) roughness=root/'roughness.f32'; np.full(2048,2.0,dtype='