Skip to content

Commit 2c58ba6

Browse files
committed
fixup! fixup! Issue #346 Some more ProcessArgs porting
1 parent aa929d7 commit 2c58ba6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_processes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def test_get_required_with_type(self):
458458
with pytest.raises(
459459
ProcessParameterInvalidException,
460460
match=re.escape(
461-
"The value passed for parameter 'color' in process 'wibble' is invalid: Expected <class 'openeo_driver.datacube.DriverDataCube'> but got <class 'str'>."
461+
"The value passed for parameter 'color' in process 'wibble' is invalid: Expected raster cube but got <class 'str'>."
462462
),
463463
):
464464
_ = args.get_required("color", expected_type=DriverDataCube)
@@ -521,7 +521,7 @@ def test_get_optional_with_type(self):
521521
with pytest.raises(
522522
ProcessParameterInvalidException,
523523
match=re.escape(
524-
"The value passed for parameter 'foo' in process 'wibble' is invalid: Expected <class 'openeo_driver.datacube.DriverDataCube'> but got <class 'str'>."
524+
"The value passed for parameter 'foo' in process 'wibble' is invalid: Expected raster cube but got <class 'str'>."
525525
),
526526
):
527527
_ = args.get_optional("foo", expected_type=DriverDataCube)

tests/test_views_execute.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3026,7 +3026,7 @@ def test_execute_no_cube_dynamic_args(api):
30263026
assert kwargs["factor"] == 7.75
30273027

30283028

3029-
@pytest.mark.parametrize(["border", "expected"], [(0, 0), ("0", 0), ])
3029+
@pytest.mark.parametrize(["border", "expected"], [(0, 0)])
30303030
def test_execute_apply_kernel_border(api, border, expected):
30313031
pg = {
30323032
"lc1": {'process_id': 'load_collection', 'arguments': {'id': 'S2_FOOBAR'}},

0 commit comments

Comments
 (0)