# In conftest.py, pytest will set this flag to True. Using this flag, we determine whether we are running the code
# from pytest, or from a script. It's used for error handling, we want to exit gracefully without showing the stacktrace
# when a user is using our API.
[docs]
ENABLE_VERBOSE_ERROR_MESSAGES = False
# Special flag for triggering the error handling system inside pytest. Check test_error_handling.py for example.
[docs]
trigger_error_sanitizer = False
[docs]
def enable_verbose_error_messages():
global ENABLE_VERBOSE_ERROR_MESSAGES
ENABLE_VERBOSE_ERROR_MESSAGES = True