Skip to content

cleanup: use real mocking for plugin_event_accumulator_test.py #5543

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

Merged
merged 1 commit into from
Feb 1, 2022

Conversation

nfelt
Copy link
Contributor

@nfelt nfelt commented Feb 1, 2022

This updates plugin_event_accumulator_test.py to use real mocking (aka unittest.mock) rather than hand-written monkey-patching. This simplifies the logic, and makes it robust to changes in the arguments that are propagated from the accumulator to the underlying generator (since we're ignoring all the arguments in the mocks anyway).

This is pre-work for #5530.

@nfelt nfelt merged commit 7154c60 into master Feb 1, 2022
@nfelt nfelt deleted the nfelt-filereplace-3 branch February 1, 2022 16:53
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Mar 27, 2023
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants