drivendataorg/cloudpathlib

Tests: `tmpdir` is deprecated and we should use `tmp_path` instead

オープン

#370 opened on 2023/10/09

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Python (87 件のフォーク)auto 404
good first issuetests

Repository metrics

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

説明

We use tmpdir throughout the tests, but it is deprecated: https://docs.pytest.org/en/stable/how-to/tmp_path.html#the-tmpdir-and-tmpdir-factory-fixtures

We should remove replace tmpdir fixture with tmp_path throughout the test suite.

Originally posted by @jayqi in https://github.com/drivendataorg/cloudpathlib/pull/361#discussion_r1304854288

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