aio-libs/multidict

[TODO] Replace `tests/gen_pickles.py` with a pytest plugin

オープン

#922 opened on 2024/01/16

 (13 件のコメント) (2 件のリアクション) (1 人の担当者)Python (130 件のフォーク)auto 404
Hacktoberfestenhancementgood first issuehelp wanted

Repository metrics

Stars
 (491 個のスター)
PR merge metrics
 (PR metrics pending)

説明

The idea is simple:

  • Make a session-scoped fixture in tests/conftest.py
  • Move the logic from gen_pickles.py there and generate the pickles in a tmppath-provided dir
  • Integrate that into the pickling tests
  • Delete tests/gen_pickles.py and the pickle files in the tests/ dir
  • Bonus points: keep pickles in-memory, so they don't hit the disk
  • Bonus 2: check if a session fixture is needed and switch to the normal function scope, if not

コントリビューターガイド