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

Modify code and tests to avoid creating output files when tests run #211

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

paolafer
Copy link
Contributor

@paolafer paolafer commented Oct 4, 2023

This PR modifies tests and a few classes to prevent tests from creating permanent files.
Now said files (hdf5 and csv) are created in a temporary directory, which is deleted at the end of the test run.

@paolafer paolafer requested a review from jwaiton October 5, 2023 08:24
Copy link
Contributor

@jwaiton jwaiton left a comment

Choose a reason for hiding this comment

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

Approved

All tests pass. I receive some warnings related to deprecated functions which we've assumed are due to python package differences. These don't appear to be a cause for concern.

Output from tests contained within tmp/ directory on my computer, which is regularly wiped. So works as expected 👍

OS: Ubuntu 22.04.3 LTS x86_64
Kernel: 6.2.0-34-generic

@paolafer paolafer merged commit 7ae9956 into next-exp:master Oct 9, 2023
@paolafer paolafer deleted the fix-macro-test branch January 8, 2024 16:33
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