pytestでプライベート化した関数を呼び出す

概要

from example.function.handler import __check_request

とすると、Pylanceでerrorになります。
こちらをerrorにならないようにするには as で別名を付与してあげることで回避可能です。

from example.function.handler import __check_request as check_request