def METHOD_NAME(client, db, user, jwt):
    order_id = create_order(db, user)
    order = Order.query.get(order_id)
    order_event = order.event
    event = EventFactoryBasic()
    db.session.commit()
    data = json.dumps(
        {
            'data': {
                'type': 'order',
                'id': order_id,
                "relationships": {
                    "event": {"data": {"id": str(event.id), "type": "event"}}
                },
            }
        }
    )
    response = client.patch(
        f'/v1/orders/{order_id}',
        content_type='application/vnd.api+json',
        headers=jwt,
        data=data,
    )
    db.session.refresh(order)
    assert response.status_code == 200
    assert order.event == order_event