test: delete unit tests that only check the host machine
Merged
FA
5d ago+0+0+0123456789-32-32-01234567890123456789
All Submissions:
- Have you followed the guidelines stated in CONTRIBUTING.md file?
- Have you checked to ensure there aren't any other open Pull Requests for the desired changed?
Type of change
Tests only. No change to Reflex code, so no changelog fragment (skip-changelog).
What and why
Deletes two unit tests that checked the machine running them instead of Reflex code:
test_get_cpu_info(tests/units/test_prerequisites.py) ran the reallscpu/ PowerShell /sysctland asserted the result was notNone.get_cpu_info()returnsNoneby design when the command gives nothing, so the test failed on runners where the code worked correctly (assert None is not Noneon reflex-dev/reflex#8018). It also wrotecpu_info.jsoninto the real~/.reflex.test_telemetry(tests/units/test_telemetry.py) assertedplatform.system()was one of four names,multiprocessing.cpu_count() > 0, a version constant was notNone, and Python >= 3.7.
https://claude.ai/code/session_01LwJUCT69RtGdNG8FSoYWyS
Generated by Claude Code