From d1a3ade275c4a7939079ccd12118c3a0a16f75cd Mon Sep 17 00:00:00 2001 From: Nayane Fernandes <143632290+ansnfernand@users.noreply.github.com> Date: Mon, 8 Sep 2025 15:46:34 +0200 Subject: [PATCH 1/3] fix: fixed Pydantic warning issue --- src/ansys/sherlock/core/types/parts_types.py | 2 +- tests/test_parts.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ansys/sherlock/core/types/parts_types.py b/src/ansys/sherlock/core/types/parts_types.py index 019bf0e3c..fc1ee10e1 100644 --- a/src/ansys/sherlock/core/types/parts_types.py +++ b/src/ansys/sherlock/core/types/parts_types.py @@ -170,7 +170,7 @@ class ImportPartsToAVLRequest(BaseModel): import_file: str """Full file path to the AVL file.""" - import_type: parts_service.AVLImportType + import_type: parts_service.AVLImportType.ValueType """Import mode to use for AVL data.""" """Allow non-standard types like Protobuf enums in Pydantic models.""" diff --git a/tests/test_parts.py b/tests/test_parts.py index a570f92d7..5463802d3 100644 --- a/tests/test_parts.py +++ b/tests/test_parts.py @@ -55,6 +55,7 @@ def test_all(): helper_test_get_part_location(parts) helper_test_get_parts_list_properties(parts) helper_test_update_pad_properties(parts) + helper_test_import_parts_to_avl(parts) def helper_test_update_parts_list(parts: Parts): From cb334799d3b13f56526064a8c79c0e9703270f3a Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Mon, 8 Sep 2025 13:49:54 +0000 Subject: [PATCH 2/3] chore: adding changelog file 635.test.md [dependabot-skip] --- doc/changelog.d/635.test.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/635.test.md diff --git a/doc/changelog.d/635.test.md b/doc/changelog.d/635.test.md new file mode 100644 index 000000000..584b20c6d --- /dev/null +++ b/doc/changelog.d/635.test.md @@ -0,0 +1 @@ +Fix: fixed Pydantic warning issue From 73c0fbbadd10054f57eaabb113e50b609cbfabc0 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Mon, 8 Sep 2025 13:51:01 +0000 Subject: [PATCH 3/3] chore: adding changelog file 635.added.md [dependabot-skip] --- doc/changelog.d/{635.test.md => 635.added.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename doc/changelog.d/{635.test.md => 635.added.md} (100%) diff --git a/doc/changelog.d/635.test.md b/doc/changelog.d/635.added.md similarity index 100% rename from doc/changelog.d/635.test.md rename to doc/changelog.d/635.added.md