Skip to content

Conversation

@bouweandela
Copy link
Member

@bouweandela bouweandela commented Nov 15, 2022

Description

This modernizes the unit tests for esmvalcore.preprocessor.save and adds an extra test that the parent directory of the target file is created if it does not exist.

Part of #1609.


Before you get started

Checklist

It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.


To help with the number pull requests:

@codecov
Copy link

codecov bot commented Nov 15, 2022

Codecov Report

Merging #1799 (8ad58df) into main (4d48ece) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1799   +/-   ##
=======================================
  Coverage   91.51%   91.51%           
=======================================
  Files         202      202           
  Lines       10908    10908           
=======================================
  Hits         9982     9982           
  Misses        926      926           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@bouweandela bouweandela marked this pull request as ready for review November 15, 2022 11:23
@bouweandela bouweandela added this to the v2.8.0 milestone Nov 15, 2022
@bouweandela bouweandela changed the title Modernize and add tests for esmvalcore.preprocessor.save Modernize tests for esmvalcore.preprocessor.save Nov 15, 2022
Copy link
Contributor

@valeriupredoi valeriupredoi left a comment

Choose a reason for hiding this comment

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

cheers @bouweandela - wouldn't it even better to make those tests individual functions outside the overarching test class? Either way - modern now 😁

@bouweandela
Copy link
Member Author

bouweandela commented Nov 21, 2022

wouldn't it even better to make those tests individual functions outside the overarching test class?

Yes, but it would make the diff much bigger. Anyway, I can do another commit to change it if you want?

@bouweandela
Copy link
Member Author

@valeriupredoi I removed the overarching class. Could you have another look please?

Copy link
Contributor

@valeriupredoi valeriupredoi left a comment

Choose a reason for hiding this comment

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

lovely! I think the extra work is worth it, cheers, bud 🍺

@bouweandela
Copy link
Member Author

@ESMValGroup/technical-lead-development-team Could someone please do a final check and merge?

@schlunma schlunma merged commit bb58405 into main Nov 22, 2022
@schlunma schlunma deleted the improve-save-tests branch November 22, 2022 14:11
@schlunma
Copy link
Contributor

Thanks @bouweandela @valeriupredoi 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants