def METHOD_NAME(app_variant, image):
    # This is the function from db_manager.py
    add_variant_based_on_image(app_variant, image)
    response = client.get("/app_variant/list_variants/")
    assert response.status_code == 200
    assert len(response.json()) == 1
    result = AppVariant(**response.json()[0])
    assert result.app_name == app_variant.app_name
    assert result.variant_name == app_variant.variant_name