-
Notifications
You must be signed in to change notification settings - Fork 44.7k
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
browse: (1) apply url validation also to scrape_links(), (2) add unit-tests for scrape_links() #780
browse: (1) apply url validation also to scrape_links(), (2) add unit-tests for scrape_links() #780
Conversation
…r message the same
tests/test_browse_scrape_links.py
Outdated
assert result[0] == "Google (https://www.google.com)" | ||
assert result[1] == "GitHub (https://github.com)" | ||
assert result[2] == "CodiumAI (https://www.codium.ai)" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines are non-PEP8 compliant whitespace. Remove them (but ensure that there is a final CRLF
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now you overdone it. You should leave the final line separator. The exact rules are pretty hard, you can just run the flake8 and see if it stops complaining at the EOL :-\
But this is lesser evil, I approve
@coditamar There are conflicts now |
I will make the needed changes or open a clean PR |
Overall changed: To be frank, I think that the changes that made the conflicts were a bit messy -- it wasn't "dry" for example I hope I made the code cleaner |
Conflicting files |
…ape_links_test_and_validate browse: (1) apply url validation also to scrape_links(), (2) add unit-tests for scrape_links()
Background
• Validating URLs is important and we wish to apply it to all browse functions and not only scrape_text()
• Continuing to add unit-test to enable us to develop with confidence, this time adding tests to scrape_links()
Changes
Documentation
Functions include comments.
test_browse_scrape_links.py includes explanations.
Test Plan
Tests where added
PR Quality Checklist