tests package¶
Subpackages¶
- tests.data package
- tests.integration package
- Subpackages
- tests.integration.routes package
- Submodules
- tests.integration.routes.test_get_channel module
- tests.integration.routes.test_get_ims module
- tests.integration.routes.test_get_team module
- tests.integration.routes.test_get_user_v2 module
- tests.integration.routes.test_healthcheck module
- tests.integration.routes.test_interactive module
- tests.integration.routes.test_send_im module
- tests.integration.routes.test_slack_action module
- tests.integration.routes.test_slack_event module
- tests.integration.routes.test_slash_command module
- Module contents
- tests.integration.routes package
- Submodules
- tests.integration.conftest module
- Module contents
- Subpackages
- tests.unit 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.