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
- Subpackages
- tests.unit.omnibot package
- Subpackages
- tests.unit.omnibot.authnz package
- tests.unit.omnibot.services package
- Subpackages
- tests.unit.omnibot.services.slack package
- Submodules
- tests.unit.omnibot.services.slack.bot_test module
- tests.unit.omnibot.services.slack.interactive_component_test module
- tests.unit.omnibot.services.slack.message_test module
- tests.unit.omnibot.services.slack.parser_test module
- tests.unit.omnibot.services.slack.team_test module
- Module contents
- tests.unit.omnibot.services.slack package
- Module contents
- Subpackages
- Submodules
- tests.unit.omnibot.settings_test module
- Module contents
- Subpackages
- tests.unit.omnibot package
- Module contents
- Subpackages
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.