pytest can run test classes, but functions are a better way. Each test function uses a fixture for setup. Compare this example to test_calc.py in example-py-unittest.
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する