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 an integration test for consistency with common-definitions #6

Merged
merged 7 commits into from
Feb 15, 2024

Conversation

danielhuppmann
Copy link
Member

@danielhuppmann danielhuppmann commented Feb 15, 2024

Remove GDP variables following the merging of IAMconsortium/common-definitions#54 and add an integration-test to ensure consistency between common-definitions & legacy definitions.

@danielhuppmann danielhuppmann self-assigned this Feb 15, 2024
@danielhuppmann
Copy link
Member Author

@phackstock, one minor issue in the test is that nomenclature.yaml is not deleted if the test fails. I tried briefly playing around with some try-except-finally but it become a bit complicated... And there isn't really any harm from that file not being deleted when running the test locally.

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.

Looks good to me.
Regarding the test not deleting the config file, using a try... finally in the test should solve the issue. I've put a solution that should work as suggestions.
Then you could also remove the entry from the .gitignore file.

tests/test_integration.py Show resolved Hide resolved
tests/test_integration.py Outdated Show resolved Hide resolved
tests/test_integration.py Show resolved Hide resolved
tests/test_integration.py Outdated Show resolved Hide resolved
@danielhuppmann danielhuppmann force-pushed the devops/integration-test branch from a180e16 to ed4e359 Compare February 15, 2024 08:49
@danielhuppmann
Copy link
Member Author

Seems to work as expected, thanks for the hint!

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.

Now the entry in the .gitignore is no longer needed.
Other than that good to merge 👍

.gitignore Outdated Show resolved Hide resolved
Co-authored-by: Philip Hackstock <[email protected]>
@danielhuppmann danielhuppmann merged commit e55780b into main Feb 15, 2024
3 checks passed
@danielhuppmann danielhuppmann deleted the devops/integration-test branch February 15, 2024 09:25
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.

2 participants