File tree Expand file tree Collapse file tree 3 files changed +18
-20
lines changed
examples/pdm_vcpkg_cmake/simple
tests/integration/examples Expand file tree Collapse file tree 3 files changed +18
-20
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 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 ()
Original file line number Diff line number Diff line change 33All 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-
116pytest_plugins = ['tests.fixtures.cmake' ]
127
138
149class 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
You can’t perform that action at this time.
0 commit comments