Remove internet request in unit tests #3347
Labels
hermetic-build
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
The unit tests in
hermetic_build/release_note_generation/tests/generate_pr_description_unit_tests.py
have realgit clone
andgit checkout
. However, it is not a best practice for unit tests to depend on internet request as it is slow and flaky.We should mock these operations to make the unit tests quick and deterministic.
The text was updated successfully, but these errors were encountered: