|
1 | | -"""Version and roadmap consistency checks.""" |
2 | | - |
3 | | -from __future__ import annotations |
| 1 | +"""Version and OSS docs consistency checks.""" |
4 | 2 |
|
5 | 3 | from pathlib import Path |
6 | 4 |
|
@@ -32,37 +30,26 @@ def test_version_markers_follow_project_version() -> None: |
32 | 30 | assert f'return "{expected_dev_version}"' in cli_text |
33 | 31 |
|
34 | 32 |
|
35 | | -def test_design_and_summary_keep_full_gui_roadmap_order() -> None: |
36 | | - design = Path("docs/design.md").read_text(encoding="utf-8") |
37 | | - summary = Path("docs/summary.md").read_text(encoding="utf-8") |
38 | | - assert "**Version / 版本**: 0.7.0" in design |
39 | | - assert "| v0.5.0 | Full GUI integration milestone" in design |
40 | | - assert "| v0.6.0 | IK tuning workflow hardening" in design |
41 | | - assert "| v0.7.0 | Marked-frame history and quick revisit UX in CLI/GUI" in design |
42 | | - assert "| v0.8.x | Font architecture stabilization and reliability hardening" in design |
43 | | - assert "| v0.9.x | Physics replay (PD control), deterministic tests" in design |
44 | | - assert "| v1.0.0 | Isaac/NV backend, HDF5 support, plugin completion" in design |
45 | | - assert "| v1.1.0 | Web/Jupyter viewer export, packaging/distribution hardening" in design |
46 | | - assert "Phase 5 — Full GUI Integration (Milestone 0.5.0)" in summary |
47 | | - assert "Phase 6 — IK Tuning Workflow + Conversion Interop (Milestone 0.6.0)" in summary |
48 | | - assert "Phase 7 — Marked-Frame UX + Docs/Release Sync (Milestone 0.7.0)" in summary |
49 | | - assert ( |
50 | | - "Phase 8 — Font Architecture Stabilization + Reliability Hardening (Milestone 0.8.x)" |
51 | | - in summary |
52 | | - ) |
53 | | - assert "Phase 9 — Physics Replay + Advanced Evaluation (Milestone 0.9.0)" in summary |
54 | | - assert "Phase 10 — Multi-Backend & Plugin System (Milestone 1.0.0)" in summary |
55 | | - assert "Phase 11 — Distribution & Community (Milestone 1.1.0)" in summary |
| 33 | +def test_v080_docs_align_with_font_size_release_behavior() -> None: |
| 34 | + quickstart_en = Path("docs/QUICKSTART_en.md").read_text(encoding="utf-8") |
| 35 | + quickstart_zh = Path("docs/QUICKSTART_zh.md").read_text(encoding="utf-8") |
| 36 | + ik_usage = Path("docs/IK_USAGE.md").read_text(encoding="utf-8") |
| 37 | + changelog = Path("CHANGELOG.md").read_text(encoding="utf-8") |
| 38 | + |
| 39 | + assert "## [0.8.0]" in changelog |
| 40 | + assert "--font-size" in changelog |
| 41 | + assert "RMP_GUI_FONT_SIZE" in changelog |
56 | 42 |
|
| 43 | + for text in (quickstart_en, quickstart_zh, ik_usage): |
| 44 | + assert "--font-size" in text |
| 45 | + assert "RMP_GUI_FONT_SIZE" in text |
57 | 46 |
|
58 | | -def test_readme_has_professional_banner_and_dual_mode_sections() -> None: |
| 47 | + |
| 48 | +def test_readme_references_oss_docs_only() -> None: |
59 | 49 | readme = Path("README.md").read_text(encoding="utf-8") |
60 | | - readme_cn = Path("README_CN.md").read_text(encoding="utf-8") |
61 | | - assert "" in readme |
62 | | - assert "## CLI Mode" in readme |
63 | | - assert "## Full GUI Mode" in readme |
64 | | - assert "[中文 README](README_CN.md)" in readme |
65 | | - assert "[English README](README.md)" in readme_cn |
66 | | - assert "https://github.com/YanjieZe/GMR" in readme |
67 | | - assert "https://github.com/Mr-tooth/rsl-rl-ex" in readme |
68 | | - assert "jGMR" not in readme |
| 50 | + |
| 51 | + assert "[English](README.md)" in readme |
| 52 | + assert "[中文](docs/QUICKSTART_zh.md)" in readme |
| 53 | + assert "docs/QUICKSTART_en.md" in readme |
| 54 | + assert "docs/IK_USAGE.md" in readme |
| 55 | + assert "README_CN.md" not in readme |
0 commit comments