Skip to content

Conversation

@nfelt
Copy link
Contributor

@nfelt nfelt commented Feb 1, 2022

We have a few FakeFlag instances in our tests. We periodically have to add flags to these (for new flags that we're introducing or existing flags we're using in new places), but since the flags aren't in any particular order, it's kind of messy and hard to tell where to put the flag / whether a flag is already present.

This resolves this by just alphabetizing the flags. We also make them all keyword args (rather than special-casing logdir to be a positional argument).

This is pre-work for #5530.

@nfelt nfelt merged commit 7d2d687 into master Feb 1, 2022
@nfelt nfelt deleted the nfelt-filereplace-4 branch February 1, 2022 16:53
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Mar 27, 2023
* sort FakeFlags fields in core_plugin_test.py

* data_ingester_test.py: clean up FakeFlags arg order

* application_test.py: sort FakeFlags args, make logdir a kwarg
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
* sort FakeFlags fields in core_plugin_test.py

* data_ingester_test.py: clean up FakeFlags arg order

* application_test.py: sort FakeFlags args, make logdir a kwarg
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