MCPcopy
hub / github.com/reflex-dev/reflex / test_is_prod_mode

Function test_is_prod_mode

tests/units/utils/test_utils.py:812–817  ·  view source on GitHub ↗

Test that the prod mode is correctly determined.

()

Source from the content-addressed store, hash-verified

810
811
812def test_is_prod_mode() -> None:
813 """Test that the prod mode is correctly determined."""
814 environment.REFLEX_ENV_MODE.set(constants.Env.PROD)
815 assert utils_exec.is_prod_mode()
816 environment.REFLEX_ENV_MODE.set(None)
817 assert not utils_exec.is_prod_mode()

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected