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

Keep functions from printing during unit tests #15

Open
amhanson9 opened this issue Apr 1, 2024 · 1 comment
Open

Keep functions from printing during unit tests #15

amhanson9 opened this issue Apr 1, 2024 · 1 comment
Labels
fixity Related to validate_fixity.py format_list Related to format_list.py

Comments

@amhanson9
Copy link
Contributor

It can be confusing to have functions print to the terminal during unit tests, since it gets mixed in with error messages from the testing. So far, this is only happening with test_get_risk in collection_summary.py, but we plan to print in other scripts as well.

@amhanson9 amhanson9 added the coll_summary Related to collection_summary.py label Apr 1, 2024
@amhanson9 amhanson9 added format_list Related to format_list.py risk_update Related to risk_update.py labels May 24, 2024
@amhanson9
Copy link
Contributor Author

amhanson9 commented May 28, 2024

When it is from running the script with subprocess.run(), add stdout=subprocess.PIPE. These have been addressed.

@amhanson9 amhanson9 added fixity Related to validate_fixity.py and removed coll_summary Related to collection_summary.py risk_update Related to risk_update.py labels May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixity Related to validate_fixity.py format_list Related to format_list.py
Projects
None yet
Development

No branches or pull requests

1 participant