diff --git a/tests/test_server_basic.py b/tests/test_server_basic.py index ea183454..29d00074 100644 --- a/tests/test_server_basic.py +++ b/tests/test_server_basic.py @@ -4457,7 +4457,11 @@ def test_parameter_bounds_metadata(dispatcher_live_fixture): jdata=c.json() metadata = [json.loads(x) for x in jdata[0] if isinstance(x, str)] + if len(metadata) == 0: + # new behaviour, metadata is not string-encoded in the request + metadata = jdata[0] restricted_meta = [x for x in metadata if x[0]['query_name'] == 'restricted_parameters_dummy_query'][0] + def meta_for_par(parname): return [x for x in restricted_meta if x.get('name', None) == parname][0]