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

Add a standard way to "reset" a Configuration object for testing #634

Closed
ocelotl opened this issue May 1, 2020 · 0 comments · Fixed by #636
Closed

Add a standard way to "reset" a Configuration object for testing #634

ocelotl opened this issue May 1, 2020 · 0 comments · Fixed by #636
Assignees
Labels
enhancement New feature or request tests

Comments

@ocelotl
Copy link
Contributor

ocelotl commented May 1, 2020

It is a common occurrence in tests that the global Configuration object needs to be "reset" between tests. This means that its attributes need to be set back to their original values. Since the Configuration object is immutable by design, some additional, non-production available mechanism is needed to perform this action.

The need for this feature was mentioned in a conversation in #630.

@ocelotl ocelotl self-assigned this May 1, 2020
@ocelotl ocelotl added enhancement New feature or request tests labels May 1, 2020
srikanthccv pushed a commit to srikanthccv/opentelemetry-python that referenced this issue Nov 1, 2020
…pen-telemetry#638)

* chore: fix renames in metrics test

* chore: fix formatting

* chore: rename BaseInstrument to BaseBoundInstrument

Co-authored-by: Mayur Kale <mayurkale@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant