-
Notifications
You must be signed in to change notification settings - Fork 181
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 Flake8 violations for files in the test/test_web.py #1105
Fix Flake8 violations for files in the test/test_web.py #1105
Conversation
This reverts commit 2af36bf.
…o airspeed-velocity-master
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.
Looks good. Can we stop excluding the file from flake8?
test/test_web.py
Outdated
@@ -23,7 +20,7 @@ | |||
pass | |||
|
|||
from . import tools | |||
from .tools import browser, get_with_retry, WAIT_TIME, locked_cache_dir, WIN | |||
from .tools import browser, get_with_retry, WAIT_TIME, locked_cache_dir, WIN # noqa F401 '.tools.browser' imported but unused. The fixture 'browser' is necessary for several functions |
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.
Do you mind moving the fixture of fixtures to conftest in a separate PR before merging this, so we don't need to have this noqa
.
CC: @dorothykiz1
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.
I worked on this. Refer to #1114 PR
@datapythonista |
This has conflicts, can you resolve them pelase? |
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.
Couple of comments, and you'll have to resolve the conflicts too.
test/test_web.py
Outdated
regression_2 = browser.find_element_by_link_text('params_examples.track_find_test(2)') # noqa F841 assigned to but never used, needed to check the link | ||
bad_hash_link = browser.find_element_by_link_text(bad_commit_hash[:8]) # noqa F841 assigned to but never used, needed to check the link |
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.
Don't assign to a variable if the result is not used.
test/test_web.py
Outdated
popover = browser.find_element_by_css_selector('div.popover-content') # noqa F841 assigned to but never used, needed to check an element | ||
flotplot = browser.find_element_by_css_selector('canvas.flot-base') # noqa F841 assigned to but never used, needed to check an element |
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.
Same
@datapythonista I included the last comments and resolved the conflicts. The PR is ready for review. Thanks a lot! |
Thanks @LucyJimenez, very nice |
xref #1042
Fix pep8 issues on
test_web.py
Note: the fixture issues will be solved in another PR.