-
Notifications
You must be signed in to change notification settings - Fork 21
Code Formator and Basic brainyquotes test added #26
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
Open
sayanmondal2098
wants to merge
13
commits into
oss2019:master
Choose a base branch
from
sayanmondal2098:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d79bef2
Code Formator and Basic brainyquotes test added
sayanmondal2098 8badc55
formatted
sayanmondal2098 16051c2
formatted
sayanmondal2098 a012218
Update test_brainyquotes.py
sayanmondal2098 39c9d21
Merge branch 'master' of https://github.com/oss2019/pyquotes into oss…
sayanmondal2098 9f079fb
git push origin masterMerge branch 'oss2019-master'
sayanmondal2098 68162e7
Merge branch 'master' of https://github.com/sayanmondal2098/pyquotes
sayanmondal2098 1aa6a57
" " changes to ''
sayanmondal2098 935c44b
test modified
sayanmondal2098 61426fc
test modified
sayanmondal2098 735d145
updated
sayanmondal2098 3341be4
updated
sayanmondal2098 c6f3b74
updated
sayanmondal2098 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| __all__ = ["pyquotes", "brainyquote", "scrapper"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import os | ||
| import unittest | ||
| import pep8 | ||
|
|
||
|
|
||
| class TestCodeFormat(unittest.TestCase): | ||
| def test_pep8_conformance(self): | ||
| """Test that we conform to PEP8. checks all project files""" | ||
| errors = 0 | ||
| style = pep8.StyleGuide(quiet=False) | ||
| style.options.max_line_length = 120 | ||
| for root, dirs, files in os.walk("."): | ||
| python_files = [os.path.join(root, f) | ||
| for f in files if f.endswith(".py")] | ||
| errors = style.check_files(python_files).total_errors | ||
|
|
||
| self.assertEqual(errors, 0, "PEP8 style errors: %d" % errors) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| unittest.main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import requests | ||
|
|
||
|
|
||
| class TestBrainyQuotes: | ||
| def TestBrainyQuotesUp(): | ||
|
|
||
| r = requests.head("https://www.brainyquote.com/") | ||
| print("Website Up") | ||
| return r.status_code == 200 | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| TestBrainyQuotes.TestBrainyQuotesUp() |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.