Skip to content

Commit

Permalink
fix adapt test
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavchenko committed Aug 27, 2024
1 parent d5894f9 commit d8c2cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_server_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4460,8 +4460,8 @@ def test_parameter_bounds_metadata(dispatcher_live_fixture):
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]
restricted_meta = [x for x in metadata if isinstance(x, list) and 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 d8c2cc9

Please sign in to comment.