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

Fix wpull.scraper.html_test.TestHTMLScraper #9

Open
ivan opened this issue Oct 5, 2018 · 0 comments
Open

Fix wpull.scraper.html_test.TestHTMLScraper #9

ivan opened this issue Oct 5, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@ivan
Copy link
Contributor

ivan commented Oct 5, 2018

probably broken by my parser changes:

======================================================================
FAIL: test_html_scraper_links (wpull.scraper.html_test.TestHTMLScraper)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/grab/wpull/thematrix/wpull/scraper/html_test.py", line 84, in test_html_scraper_links
    inline_urls
AssertionError: Items in the first set but not the second:
'http://example.com/frame_src.html'
-------------------- >> begin captured logging << --------------------
wpull.document.util: DEBUG: Got encoding: utf-8
wpull.scraper.util: WARNING: Unable to parse URL ‘http://example.invalid](http://example.invalid’: Invalid IPv6 URL.
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_html_scraper_links_base_href (wpull.scraper.html_test.TestHTMLScraper)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/grab/wpull/thematrix/wpull/scraper/html_test.py", line 279, in test_html_scraper_links_base_href
    inline_urls
AssertionError: {'http://example.com/a/dir/image1.png', 'http://example.com/dir/image4.png', 'http://www.example.com/stylesheet2.css', 'http://example.net/image3.png', 'http://example.com/dir/image2.png', 'http://example.com/a/stylesheet3.css', 'http://cdn.example.com/stylesheet1.css'} != frozenset({'http://example.net/image3.png', 'http://example.com/dir/image4.png', 'http://example.com/dir/image1.png', 'http://example.com/dir/image2.png'})
-------------------- >> begin captured logging << --------------------
wpull.document.util: DEBUG: Got encoding: utf-8
--------------------- >> end captured logging << ---------------------
@HeliosLHC HeliosLHC added the bug Something isn't working label Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants