-
Notifications
You must be signed in to change notification settings - Fork 8
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
🌍 Add google-earth filetype kml
and update contributing
#11
Conversation
- Add kml filetype on websearch - Add test for kml filetype - Add link for contributing
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.
Where is the docs?
There is no README to show your PR ?
- Create a method for finding all filetype - Add test for custom - Add KML and CUSTOM to readme
fix default parameter
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.
Accepted,
Thanks !
websearch/script.py
Outdated
self.__data['kml'] = (self.query, result) | ||
return result | ||
|
||
def custom_search(self, extension='pdf', mimetype='pdf'): |
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.
you change ext to mimetype, so you have to write 'application/pdf' not pdf only
J'ai mis le label hacktoberfest-accepted donc, cela sera compté dans ton hacktoberfest challenge, Je mergerai quand j'aurais trouvé le soucis du test, cela n'est pas lié à ton code apparement, |
tests/test.py
Outdated
self.assertTrue(len(documents)) | ||
#verification lien | ||
for doc in documents: | ||
self.assertTrue(map.startswith('http')) |
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.
why you use map ? you mean doc, that's why test fail for custom_search
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.
sorry for the error
@gaetan1903 @rivo2302 please review my PR and add
hacktoberfest-accepted
tags 🚀