Skip to content

Commit

Permalink
Fix websurfer test error (#3138)
Browse files Browse the repository at this point in the history
* Fix assertion error

* Update triggers
  • Loading branch information
thinkall authored and victordibia committed Jul 30, 2024
1 parent 87cd10c commit ee907da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/contrib-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
paths:
- "autogen/**"
- "test/agentchat/contrib/**"
- "test/test_browser_utils.py"
- "test/test_retrieve_utils.py"
- ".github/workflows/contrib-tests.yml"
- "setup.py"

Expand Down
2 changes: 1 addition & 1 deletion test/test_browser_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_simple_text_browser():
top_viewport = browser.visit_page(BLOG_POST_URL)
assert browser.viewport == top_viewport
assert browser.page_title.strip() == BLOG_POST_TITLE.strip()
assert BLOG_POST_STRING in browser.page_content
assert BLOG_POST_STRING in browser.page_content.replace("\n\n", " ").replace("\\", "")

# Check if page splitting works
approx_pages = math.ceil(len(browser.page_content) / viewport_size) # May be fewer, since it aligns to word breaks
Expand Down

0 comments on commit ee907da

Please sign in to comment.