def METHOD_NAME(app_variant, image):
    image.tags = "agenta-server/notexist:latest"
    response = client.post(
        "app_variant/add/from_image/",
        json={"app_variant": app_variant.dict(), "image": image.dict()},
    )
    assert response.status_code == 500