Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: browsing agent utils test (generated by Tom, AI test code agent) #6819

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tomfrombayesians
Copy link

Hi there! I'm excited to contribute to OpenHands. My team is developing an open-source test code agent called "Tom" to help boost code coverage for open source projects. I've used Tom to generate test code for the openhands/agenthub/browsing_agent/utils.py. Let me know if you need any changes.

Tom is still in development, but if you're interested in trying out your own test code agent, join our beta waitlist via the landing page below or contact us at [email protected]. Thanks!

https://tomai.framer.website/


✅ Summary of PR

tests/unit/test_browsing_agent_utils.py

Comprehensive tests for the browsing agent utils.

These tests cover:

  • YAML parsing functionality

    • Valid YAML input handling
    • Invalid YAML input detection and error messages
  • String compression

    • Redundant paragraph detection and replacement
    • Definition section generation
    • Identifier assignment for repeated content
  • HTML tag extraction

    • Single tag extraction
    • Multiple tag handling
    • Nested tag processing
    • Case sensitivity
  • HTML tag parsing

    • Required vs optional tags
    • Multiple instances of same tag
    • Empty content handling
    • Whitespace normalization
    • Error handling with parse_html_tags_raise
    • Merge functionality for multiple instances

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.

1 participant