|
2 | 2 | Test the functions related to the internal interface implementation and the 'Interface' interface itself |
3 | 3 | """ |
4 | 4 |
|
| 5 | +from pathlib import Path |
| 6 | + |
5 | 7 | from cppython_core.schema import Generator, GeneratorData, PyProject |
6 | 8 | from pytest_mock import MockerFixture |
7 | 9 |
|
@@ -31,30 +33,6 @@ def test_construction(self, mocker: MockerFixture): |
31 | 33 | configuration = ProjectConfiguration() |
32 | 34 | Project(configuration, interface_mock, default_pyproject.dict(by_alias=True)) |
33 | 35 |
|
34 | | - def test_download(self, mocker: MockerFixture): |
35 | | - """ |
36 | | - TODO |
37 | | - """ |
38 | | - |
39 | | - interface_mock = mocker.MagicMock() |
40 | | - configuration = ProjectConfiguration() |
41 | | - |
42 | | - generator_type = mocker.Mock(spec=Generator) |
43 | | - generator_type.name.return_value = "mock" |
44 | | - generator_type.data_type.return_value = MockGeneratorData |
45 | | - |
46 | | - gather_override = mocker.patch.object(ProjectBuilder, "gather_plugins") |
47 | | - gather_override.return_value = [generator_type] |
48 | | - |
49 | | - project_data = default_pyproject.dict(by_alias=True) |
50 | | - mock_data = MockGeneratorData(check=True) |
51 | | - project_data["tool"]["cppython"]["mock"] = mock_data.dict(by_alias=True) |
52 | | - |
53 | | - project = Project(configuration, interface_mock, project_data) |
54 | | - |
55 | | - # TODO: This does not verify signature correctness |
56 | | - project.download() |
57 | | - |
58 | 36 |
|
59 | 37 | class TestBuilder: |
60 | 38 | """ |
|
0 commit comments