Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
複数のファイルで一連のテストケースを実行していますが、実行中に前提条件とクリーンアップを 1 回だけ実行したいのですが、それを行う方法はありますか?
py.test -> セッション スコープのフィクスチャとそのファイナライズが役立つはずです
conftest.py を使用してフィクスチャをコーディングできます。