-
Notifications
You must be signed in to change notification settings - Fork 33
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
prevent empty statistics file #628
Conversation
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
Looks good! Amazing work @mhmdk0! My only suggestion if possible would be to use the mocked filesystem for testing, instead of patching You can refer to this example: medperf/cli/medperf/tests/entities/utils.py Lines 55 to 70 in ea5a576
As well as to the documentation of pyfakefs: https://pytest-pyfakefs.readthedocs.io/en/stable/usage.html#test-scenarios If this is too cumbersome you can also leave it as is and create an issue as a reminder for later. |
Much thanks @aristizabal95 ! I’ll review and finalize it soon. I really appreciate you providing both the example and the documentation. |
@aristizabal95 Just modified the tests to use fake fs instead of patching |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Looks great!
Fixes #623