def METHOD_NAME(
    client: testclient.TestClient, db: orm.Session, executor_name: str
):
    user = users_crud.create_user(db, executor_name, users_models.Role.USER)
    project = projects_crud.create_project(
        db, "test project", visibility=projects_models.Visibility.INTERNAL
    )
    projects_users_crud.add_user_to_project(
        db,
        project,
        user,
        projects_users_models.ProjectUserRole.USER,
        projects_users_models.ProjectUserPermission.WRITE,
    )
    response = client.get("/api/v1/projects")
    assert response.status_code == 200
    assert {
        "name": "default",
        "slug": "default",
        "description": "",
        "visibility": "internal",
        "users": {"leads": 0, "contributors": 0, "subscribers": 0},
    } in response.json()
    assert {
        "name": "test project",
        "slug": "test-project",
        "description": "",
        "visibility": "internal",
        "users": {"leads": 0, "contributors": 1, "subscribers": 0},
    } in response.json()
    assert len(response.json()) == 2