Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test for unexpected failing of validation with multiple units #442

Merged
merged 5 commits into from
Dec 19, 2024

Conversation

danielhuppmann
Copy link
Member

Closes #441

@danielhuppmann danielhuppmann self-assigned this Dec 18, 2024
@danielhuppmann
Copy link
Member Author

No idea why there was no test and why the submissions started failing now...

Due to some (weirdly) failing test, I noticed that the check "illegal characters in common definitions" was actually now testing for characters that were sanitized out of common-definition - so I added a quickfix for that (using a character that appears there) on top of the unit-quickfix.

@danielhuppmann danielhuppmann requested review from phackstock and dc-almeida and removed request for phackstock December 18, 2024 13:52
@danielhuppmann danielhuppmann marked this pull request as ready for review December 18, 2024 13:55
Copy link
Contributor

@phackstock phackstock left a comment

Choose a reason for hiding this comment

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

Two small changes, then good to be merged.
I'd also suggest to rename the PR because you're not just adding a test, you're fixing the multiple unit issue itself.

nomenclature/codelist.py Outdated Show resolved Hide resolved
nomenclature/codelist.py Outdated Show resolved Hide resolved
@danielhuppmann
Copy link
Member Author

Thanks for the suggestion, implemented your changes.

@phackstock phackstock self-requested a review December 19, 2024 13:00
Copy link
Contributor

@phackstock phackstock left a comment

Choose a reason for hiding this comment

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

Thanks for implementing my suggestions, good to be merged.

@danielhuppmann danielhuppmann merged commit e2c3484 into main Dec 19, 2024
12 checks passed
@danielhuppmann danielhuppmann deleted the quickfix/validate-with-multiple-units branch December 19, 2024 13:01
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.

One of multiple allowed units not passing validation
2 participants