test: delete unit tests that only check the host machine

Merged
FA
5d ago
+0-32

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 real lscpu / PowerShell / sysctl and asserted the result was not None. get_cpu_info() returns None by design when the command gives nothing, so the test failed on runners where the code worked correctly (assert None is not None on reflex-dev/reflex#8018). It also wrote cpu_info.json into the real ~/.reflex.
  • test_telemetry (tests/units/test_telemetry.py) asserted platform.system() was one of four names, multiprocessing.cpu_count() > 0, a version constant was not None, and Python >= 3.7.

https://claude.ai/code/session_01LwJUCT69RtGdNG8FSoYWyS


Generated by Claude Code