File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ def test_process_spec_basic_100():
7171
7272
7373def 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
8586def 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
9698def test_process_spec_no_returns ():
You can’t perform that action at this time.
0 commit comments