Skip to content

Fix the existing tests for invalid input - #77

Merged
atextor merged 4 commits into
eclipse-esmf:mainfrom
sekikn:75-fix-tests-for-invalid-input
Jul 29, 2026
Merged

Fix the existing tests for invalid input#77
atextor merged 4 commits into
eclipse-esmf:mainfrom
sekikn:75-fix-tests-for-invalid-input

Conversation

@sekikn

@sekikn sekikn commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Description

This PR includes the following fixes to make the existing tests for invalid input pass.

  • Fix the namespace of the Aspect Models to follow the spec
  • Fix the location of the Aspect Models to follow the spec
  • Handle the change in the raised error type

Fixes #75

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project

  • I have performed a self-review of my own code

  • I have commented my code, particularly in hard-to-understand areas

    • The modification is so simple and straightforward that no comment is required
  • I have made corresponding changes to the documentation

    • No corresponding documentation
  • My changes generate no new warnings

  • I have added tests that prove my fix is effective or that my feature works

--cov=esmf_aspect_meta_model_python/ \
--cov-fail-under=85 \
tests/ \
tests/ tests_invalid/ \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on these updates. At the moment, all of the tests we rely on to validate the library live in the top-level tests/ suite. To keep things consistent and easier to locate, would you mind moving the updated and corrected tests into the tests/integration/ directory?

In this case, we won't need to make any changes to the tox configuration.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the review @Hanna-Shalamitskaya-EPAM, I've just updated the PR in accordance with your comment.

@Hanna-Shalamitskaya-EPAM Hanna-Shalamitskaya-EPAM left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@atextor atextor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@atextor
atextor merged commit d861224 into eclipse-esmf:main Jul 29, 2026
5 checks passed
@sekikn
sekikn deleted the 75-fix-tests-for-invalid-input branch July 31, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Tests for invalid input fail with unexpected errors

3 participants