drivendataorg/cloudpathlib

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

开放

#370 创建于 2023年10月9日

 (1 条评论) (0 个反应) (0 位负责人)Python (87 个派生)auto 404
good first issuetests

仓库指标

星标
 (624 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南