Skip to content

Commit 1c36734

Browse files
committed
Move
1 parent a51e7d7 commit 1c36734

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed
File renamed without changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""Example folder tests.
2+
3+
All examples can be run with the CPPython entry-point, and we use the examples as the test data for the CLI.
4+
"""
5+
6+
from pathlib import Path
7+
8+
pytest_plugins = ['tests.fixtures.example']
9+
10+
11+
class TestSetup:
12+
"""Verification that the example directory is setup correctly"""
13+
14+
@staticmethod
15+
def test_example_directory(example_directory: Path) -> None:
16+
"""Verify that the fixture is returning the right data"""
17+
assert example_directory.is_dir()
18+
assert (example_directory / 'pyproject.toml').is_file()

tests/integration/examples/test_pdm_vcpkg_cmake.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,8 @@
33
All examples can be run with the CPPython entry-point, and we use the examples as the test data for the CLI.
44
"""
55

6-
import shutil
7-
from pathlib import Path
8-
9-
from cppython.utility.filesystem import isolated_filesystem
10-
116
pytest_plugins = ['tests.fixtures.cmake']
127

138

149
class TestSetup:
1510
"""Verification that the example directory is setup correctly"""
16-
17-
@staticmethod
18-
def test_example_directory(example_directory: Path) -> None:
19-
"""Verify that the fixture is returning the right data"""
20-
assert example_directory.is_dir()
21-
assert (example_directory / 'pyproject.toml').is_file()
22-
23-
@staticmethod
24-
def test_list(example_directory: Path) -> None:
25-
"""Verifies that the list command functions with CPPython hooks"""
26-
with isolated_filesystem() as temp_directory:
27-
shutil.copytree(example_directory, temp_directory, dirs_exist_ok=True)
28-
29-
# result = runner.invoke(app, ['list'])
30-
# assert result.exit_code == 0

0 commit comments

Comments
 (0)