()
| 19 | |
| 20 | |
| 21 | def test_visibility_pure_function(): |
| 22 | overhead = {"lat": 39.9, "lon": 116.4, "alt": 500000} |
| 23 | gs = {"lat": 39.9, "lon": 116.4, "antenna_type": "Ka"} |
| 24 | assert orbit.check_visibility(overhead, gs) is True # 正上方可见 |
| 25 | far = {"lat": -39.9, "lon": -63.6, "alt": 500000} |
| 26 | assert orbit.check_visibility(far, gs) is False # 对跖点不可见 |
| 27 | |
| 28 | |
| 29 | def test_submit_request_returns_dict_contract(): |
nothing calls this directly
no test coverage detected