Test that the prod mode is correctly determined.
()
| 810 | |
| 811 | |
| 812 | def 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() |