Skip to content

Commit

Permalink
fixup! fixup! Issue #346 Some more ProcessArgs porting
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Dec 17, 2024
1 parent aa929d7 commit 2c58ba6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def test_get_required_with_type(self):
with pytest.raises(
ProcessParameterInvalidException,
match=re.escape(
"The value passed for parameter 'color' in process 'wibble' is invalid: Expected <class 'openeo_driver.datacube.DriverDataCube'> but got <class 'str'>."
"The value passed for parameter 'color' in process 'wibble' is invalid: Expected raster cube but got <class 'str'>."
),
):
_ = args.get_required("color", expected_type=DriverDataCube)
Expand Down Expand Up @@ -521,7 +521,7 @@ def test_get_optional_with_type(self):
with pytest.raises(
ProcessParameterInvalidException,
match=re.escape(
"The value passed for parameter 'foo' in process 'wibble' is invalid: Expected <class 'openeo_driver.datacube.DriverDataCube'> but got <class 'str'>."
"The value passed for parameter 'foo' in process 'wibble' is invalid: Expected raster cube but got <class 'str'>."
),
):
_ = args.get_optional("foo", expected_type=DriverDataCube)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_views_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -3026,7 +3026,7 @@ def test_execute_no_cube_dynamic_args(api):
assert kwargs["factor"] == 7.75


@pytest.mark.parametrize(["border", "expected"], [(0, 0), ("0", 0), ])
@pytest.mark.parametrize(["border", "expected"], [(0, 0)])
def test_execute_apply_kernel_border(api, border, expected):
pg = {
"lc1": {'process_id': 'load_collection', 'arguments': {'id': 'S2_FOOBAR'}},
Expand Down

0 comments on commit 2c58ba6

Please sign in to comment.