drivendataorg/cloudpathlib

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

Ouverte

#370 ouverte le 9 oct. 2023

 (1 commentaire) (0 réaction) (0 personne assignée)Python (87 forks)auto 404
good first issuetests

Métriques du dépôt

Stars
 (624 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur