Skip to content

Commit a40ad67

Browse files
committed
Remove Inject Example
Test case now covers it
1 parent 9f62158 commit a40ad67

File tree

5 files changed

+0
-88
lines changed

5 files changed

+0
-88
lines changed

examples/conan_cmake/inject/CMakeLists.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/conan_cmake/inject/conanfile.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

examples/conan_cmake/inject/main.cpp

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/conan_cmake/inject/pyproject.toml

Lines changed: 0 additions & 27 deletions
This file was deleted.

tests/integration/examples/test_conan_cmake.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,3 @@ def test_simple(example_runner: CliRunner) -> None:
3030

3131
# Verify that the build directory contains the expected files
3232
assert (Path('build') / 'CMakeCache.txt').exists(), 'build/CMakeCache.txt not found'
33-
34-
@staticmethod
35-
def test_inject(example_runner: CliRunner) -> None:
36-
"""Inject"""
37-
# By nature of running the test, we require PDM to develop the project and so it will be installed
38-
result = subprocess.run(['pdm', 'install'], capture_output=True, text=True, check=False)
39-
40-
assert result.returncode == 0, f'PDM install failed: {result.stderr}'
41-
42-
# Run the CMake configuration command
43-
result = subprocess.run(['cmake', '--preset=default'], capture_output=True, text=True, check=False)
44-
45-
assert result.returncode == 0, f'Cmake failed: {result.stderr}'
46-
47-
# Verify that the build directory contains the expected files
48-
assert (Path('build') / 'CMakeCache.txt').exists(), 'build/CMakeCache.txt not found'

0 commit comments

Comments
 (0)