Make AppHarness dependencies installable
Merged
HA
3mo ago+49+49+01234567890123456789-2-2-0123456789
Summary
Fixes issue #6974 by making reflex.testing usable from a clean published Reflex installation.
Changes
-
Removed the top-level uvicorn import from reflex.testing.
-
Added lazy imports with actionable installation messages.
-
Added a reflex[testing] extra containing:
- uvicorn
- psutil
- selenium
-
Updated uv.lock.
-
Added a regression test for importing reflex.testing without test dependencies.
-
Added a changelog fragment.
Testing
- AppHarness unit tests: 5 passed, 1 skipped
- Verified reflex.testing imports without uvicorn and psutil.
- Ruff formatting and lint checks passed.