-
Notifications
You must be signed in to change notification settings - Fork 10
✨ Add log to file. #560
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 log to file. #560
Conversation
|
Thanks for this! A few comments/ideas (happy to open these as separate issues if you don't want to do this here):
|
|
No problem to do so now. And also to fix the tests, that I had forgotten that we support Python 3.9. So, just to confirm, we don't give the option to select the log file name(s) just |
Cool. Yeah let's just keep it simple and hardcode the file names |
|
Done. I had to do some tweaking since tests were failing when running in parallel because they were all trying to access the same log file. I've disabled logging to file during tests, I think, since I could not find a way of indicating that using fixtures (all my attempts were ignored). |
|
I've no idea why building the docs fail. Certainly, running |
It's because the results folder doesn't exist yet when it tries to create the file (you'll already have a results folder locally from previous runs) |
|
@tsmbland , all good, now! Many thanks for the tip. |
tsmbland
left a comment
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.
Great, all looks good! Thanks very much
Description
To make everyone's life easier when running and developing MUSE. Currently the tests also produce log files. This might or might not be desirable.
Fixes #498
Type of change
Key checklist
$ python -m pytest$ python -m sphinx -b html docs docs/buildFurther checks