Skip to content

Commit 081ac50

Browse files
committed
Update test_builder.py
1 parent d511e0b commit 081ac50

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

tests/unit/plugins/conan/test_builder.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def builder(self) -> Builder:
1919

2020
def test_mixed_dependencies(self, builder: Builder, tmp_path: Path) -> None:
2121
"""Test base conanfile with both regular and test dependencies."""
22-
tmp_path.mkdir(parents=True)
2322
base_file = tmp_path / 'conanfile_base.py'
2423

2524
dependencies = [
@@ -40,8 +39,6 @@ def test_mixed_dependencies(self, builder: Builder, tmp_path: Path) -> None:
4039

4140
def test_creates_both_files(self, builder: Builder, tmp_path: Path) -> None:
4241
"""Test generate_conanfile creates both base and user files."""
43-
tmp_path.mkdir(parents=True)
44-
4542
dependencies = [
4643
ConanDependency(name='boost', version=ConanVersion.from_string('1.80.0')),
4744
]
@@ -63,8 +60,6 @@ def test_creates_both_files(self, builder: Builder, tmp_path: Path) -> None:
6360

6461
def test_regenerates_base_file(self, builder: Builder, tmp_path: Path) -> None:
6562
"""Test base file is always regenerated with new dependencies."""
66-
tmp_path.mkdir(parents=True)
67-
6863
dependencies_v1 = [
6964
ConanDependency(name='boost', version=ConanVersion.from_string('1.80.0')),
7065
]
@@ -99,8 +94,6 @@ def test_regenerates_base_file(self, builder: Builder, tmp_path: Path) -> None:
9994

10095
def test_preserves_user_file(self, builder: Builder, tmp_path: Path) -> None:
10196
"""Test user conanfile is never modified once created."""
102-
tmp_path.mkdir(parents=True)
103-
10497
conan_file = tmp_path / 'conanfile.py'
10598
custom_content = dedent("""
10699
from conanfile_base import CPPythonBase
@@ -134,8 +127,6 @@ def requirements(self):
134127

135128
def test_inheritance_chain(self, builder: Builder, tmp_path: Path) -> None:
136129
"""Test complete inheritance chain from base to user file."""
137-
tmp_path.mkdir(parents=True)
138-
139130
dependencies = [
140131
ConanDependency(name='boost', version=ConanVersion.from_string('1.80.0')),
141132
ConanDependency(name='zlib', version=ConanVersion.from_string('1.2.13')),

0 commit comments

Comments
 (0)