Refactor to use tmp_path and pathlib paths

This commit is contained in:
Joe Rickerby
2020-05-03 14:08:57 +01:00
parent 33f210b85c
commit dafe5cd1f7
12 changed files with 37 additions and 37 deletions
+4 -4
View File
@@ -13,8 +13,8 @@ basic_project = CTemplateProject(
)
def test(tmpdir):
project_dir = str(tmpdir)
def test(tmp_path):
project_dir = tmp_path / 'project'
basic_project.generate(project_dir)
# build the wheels
@@ -25,8 +25,8 @@ def test(tmpdir):
assert set(actual_wheels) == set(expected_wheels)
def test_build_identifiers(tmpdir):
project_dir = str(tmpdir)
def test_build_identifiers(tmp_path):
project_dir = tmp_path / 'project'
basic_project.generate(project_dir)
# check that the number of expected wheels matches the number of build