def test_invalid_scalar_index(adata, index):
    # https://github.com/theislab/anndata/issues/619
    with pytest.raises(IndexError, match=r".*index.* out of range\."):
        _ = adata[index]
def step_impl(context):
    data = json.loads(context.text)
    receiver_name = re.match(r"\<(\w+)'s id\>", data['receiver']).group(1)
    data['receiver'] = context.users[receiver_name]['id']
    context.request.add_data(data)