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

Improvements for logging and testing #235

Merged
merged 14 commits into from
Oct 10, 2024

Conversation

timsavage
Copy link
Collaborator

  • Feature flags now has a modify context manager that allows for patching flags
    that are reverted when the context manager exits (similar to settings).
  • Add PyTest fixture patch_feature_flags that returns modify context for feature
    flags.
  • Fully implement split logging configuration. Settings now contains LOG_HANDLERS
    and LOG_LOGGERS that are merged into the logging configuration before it is
    applied.
  • Add a function settings_in_module in the testing package to fetch a list of
    setting names from a settings module.
  • Injection Registry now has a modify context manager that allows for making changes to the registry for testing.
  • Add PyTest fixture patch_injection that returns modify context for injection registry

@timsavage timsavage merged commit 7150df6 into development Oct 10, 2024
4 of 5 checks passed
@timsavage timsavage deleted the improvements-to-logging-support branch October 10, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant