tests package

Submodules

tests.conftest module

class tests.conftest.SettingsOverrider

Bases: object

reset()

Reset settings overrides to their original values.

tests.conftest.settings_override()

A py.test fixture for temporarily overriding settings during a test. When called, this will override global settings using the provided values. The new settings will exist during the scope of the test function, and will get reset to the original values automatically after the test.

Usage:

def test_my_function(settings_override):

settings(MY_SETTING=’my value’) # do_something()

Keyword Arguments:

All keyword arguments will be interpreted as setting names.

Module contents