Package schrodinger :: Package test :: Module decorate_fflag
[hide private]
[frames] | no frames]

Module decorate_fflag

Enable or disable a feature flag in a specific situation. Can be used as a decorator for a TestCase class or a test function, or as a context manager. See nose_plugin_test.py for examples. Multiple feature flag toggling decorators/contexts can be nested to define desired feature flag environment.


Copyright: (c) Schrodinger, LLC All rights reserved.

Classes [hide private]
  enable_feature_flag
Provides a decorator/context manager for enabling feature flags.
  disable_feature_flag
Disable a feature flag as either a context manager or a decorator for a unittest.TestCase or a test function.
Variables [hide private]
  __package__ = 'schrodinger.test'