Skip to content

Conversation

@xingyaoww
Copy link
Contributor

Summary

This PR adds automated tests for the pricing documentation, migrated from the OpenHands repository.

Changes

  • Added tests/ directory with pricing documentation tests
  • Migrated test_pricing_documentation.py from All-Hands-AI/OpenHands
  • Updated the test to fetch the OpenHands model list from the GitHub repository via HTTP (since we're now in a separate repo)
  • Added README explaining how to run the tests

What the tests verify

The tests ensure that:

  1. The pricing table exists and is properly formatted in the documentation
  2. Pricing information is consistent with LiteLLM's pricing data
  3. All OpenHands models are documented with pricing
  4. The documentation doesn't reference external JSON files
  5. Pricing values are reasonable and properly formatted

Running the tests

pip install pytest requests
pytest tests/

Related

This is part of the documentation migration from the OpenHands repository to the dedicated docs repository. The corresponding PR in OpenHands removes these tests: OpenHands/OpenHands#11261

@xingyaoww can click here to continue refining the PR

- Migrate test_pricing_documentation.py from OpenHands repository
- Tests verify pricing consistency with LiteLLM data
- Tests ensure all models are documented with accurate pricing
- Updated to fetch model list from OpenHands repo via HTTP
@xingyaoww xingyaoww marked this pull request as ready for review October 6, 2025 22:00
@xingyaoww xingyaoww merged commit 36143d7 into main Oct 6, 2025
1 check passed
@mamoodi mamoodi deleted the add-pricing-documentation-tests branch October 7, 2025 17:03
raymyers pushed a commit that referenced this pull request Oct 16, 2025
- Added dismissible banner announcing All-Hands-AI to OpenHands org rename
- Banner displays at top of all documentation pages
- Includes migration date (Monday Oct 20th at 18:00 UTC) and link to details
- Fixes #2
raymyers added a commit that referenced this pull request Oct 16, 2025
* Add GitHub org rename banner to documentation

- Added dismissible banner announcing All-Hands-AI to OpenHands org rename
- Banner displays at top of all documentation pages
- Includes migration date (Monday Oct 20th at 18:00 UTC) and link to details
- Fixes #2

* Change banner background to black with white text

- Updated banner style to use black background (#000000)
- Kept white text color (#ffffff) for contrast

* Revert banner styling attempts - keep ADA compliant yellow background

- Removed invalid style property from banner configuration
- Attempted custom CSS approach but Mintlify banner styles are protected
- Current yellow background with white text is ADA compliant
- Banner functionality works correctly with dismissible feature

* Add troubleshooting section for GitHub organization rename

Fixes #3

- Added concise troubleshooting section for GitHub org rename issues
- Includes git remote update instructions
- Covers Docker image reference updates
- Provides commands to find hardcoded references

Co-authored-by: openhands <openhands@all-hands.dev>

* Replace banner style file with central styleheet

---------

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Ray Myers <ray.myers@gmail.com>
enyst pushed a commit that referenced this pull request Nov 8, 2025
Co-authored-by: openhands <openhands@all-hands.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants