|
| 1 | +from pathlib import Path |
| 2 | + |
1 | 3 | import pytest |
2 | 4 | from pydantic_core._pydantic_core import ValidationError |
3 | 5 |
|
|
11 | 13 | class TestBaseConfig: |
12 | 14 | @staticmethod |
13 | 15 | def test_works_as_defined(test_project_config_factory): |
14 | | - test_project_config_factory() |
| 16 | + config = test_project_config_factory() |
| 17 | + |
| 18 | + root_path = config.root_path |
| 19 | + assert config.model_dump() == { |
| 20 | + "add_to_excluded_python_paths": (), |
| 21 | + "create_major_version_tags": False, |
| 22 | + "documentation_path": root_path / "doc", |
| 23 | + "exasol_versions": ("7.1.30", "8.29.6", "2025.1.0"), |
| 24 | + "excluded_python_paths": ( |
| 25 | + ".eggs", |
| 26 | + ".html-documentation", |
| 27 | + ".poetry", |
| 28 | + ".sonar", |
| 29 | + ".venv", |
| 30 | + "dist", |
| 31 | + "venv", |
| 32 | + ), |
| 33 | + "minimum_python_version": "3.10", |
| 34 | + "project_name": "test", |
| 35 | + "python_versions": ("3.10", "3.11", "3.12", "3.13", "3.14"), |
| 36 | + "pyupgrade_argument": ("--py310-plus",), |
| 37 | + "root_path": root_path, |
| 38 | + "sonar_code_path": Path("exasol/test"), |
| 39 | + "source_code_path": root_path / "exasol" / "test", |
| 40 | + "version_filepath": root_path / "exasol" / "test" / "version.py", |
| 41 | + } |
15 | 42 |
|
16 | 43 | @staticmethod |
17 | 44 | @pytest.mark.parametrize( |
|
0 commit comments