aio-libs/multidict

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

開放

#922 建立於 2024年1月16日

 (13 則留言) (2 個反應) (1 位負責人)Python (130 個分叉)auto 404
Hacktoberfestenhancementgood first issuehelp wanted

倉庫指標

星標
 (491 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南