Skip to content

Commit

Permalink
adapt test
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavchenko committed Aug 27, 2024
1 parent e644a74 commit d5894f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_server_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit d5894f9

Please sign in to comment.