MCPcopy Create free account
hub / github.com/reflex-dev/reflex / is_testing_env

Function is_testing_env

reflex/utils/exec.py:838–844  ·  view source on GitHub ↗

Whether the app is running in a testing environment. Returns: True if the app is running in under pytest.

()

Source from the content-addressed store, hash-verified

836
837
838def is_testing_env() -> bool:
839 """Whether the app is running in a testing environment.
840
841 Returns:
842 True if the app is running in under pytest.
843 """
844 return constants.PYTEST_CURRENT_TEST in os.environ
845
846
847def is_in_app_harness() -> bool:

Callers 2

__init__Method · 0.90
__post_init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected