test_doctor.py 433 B

123456789101112131415
  1. from __future__ import annotations
  2. from hth_sdk.doctor import format_report, main, run_doctor
  3. def test_doctor_pass_on_mock():
  4. report = run_doctor()
  5. assert report["SDK"] == "OK"
  6. assert report["Mock read"] == "OK"
  7. assert report["Mock control"] == "OK"
  8. assert report["Replay read"] == "OK"
  9. text = format_report(report)
  10. assert "gRPC" not in text
  11. assert "Traceback" not in text
  12. assert main([]) == 0