Skip to content

Commit b54daad

Browse files
committed
fixup! ProcessSpec: stop warning about "Process with no parameters"
1 parent 03b1cb7 commit b54daad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_processes.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def test_process_spec_basic_100():
7171

7272

7373
def test_process_spec_no_params_040(caplog):
74+
caplog.set_level(logging.DEBUG)
7475
spec = ProcessSpec("foo", "bar").returns("output", schema={"type": "number"})
7576
assert spec.to_dict_040() == {
7677
"id": "foo",
@@ -79,18 +80,19 @@ def test_process_spec_no_params_040(caplog):
7980
"parameter_order": [],
8081
"returns": {"description": "output", "schema": {"type": "number"}},
8182
}
82-
assert caplog.record_tuples == [("openeo_driver.processes", logging.WARN, "Process with no parameters")]
83+
assert caplog.messages == ["Process with no parameters"]
8384

8485

8586
def test_process_spec_no_params_100(caplog):
87+
caplog.set_level(logging.DEBUG)
8688
spec = ProcessSpec("foo", "bar").returns("output", schema={"type": "number"})
8789
assert spec.to_dict_100() == {
8890
"id": "foo",
8991
"description": "bar",
9092
"parameters": [],
9193
"returns": {"description": "output", "schema": {"type": "number"}},
9294
}
93-
assert caplog.record_tuples == [("openeo_driver.processes", logging.WARN, "Process with no parameters: 'foo'")]
95+
assert caplog.messages == ["Process with no parameters: 'foo'"]
9496

9597

9698
def test_process_spec_no_returns():

0 commit comments

Comments
 (0)