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 Flake8 violations for files in the test/test_web.py #1105

Merged
merged 18 commits into from
Mar 10, 2022

Conversation

LucyJimenez
Copy link
Contributor

xref #1042

Fix pep8 issues on test_web.py

Note: the fixture issues will be solved in another PR.

Copy link
Member

@datapythonista datapythonista left a 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
Copy link
Member

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

Copy link
Contributor

@dorothykiz1 dorothykiz1 Mar 9, 2022

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

@LucyJimenez
Copy link
Contributor Author

LucyJimenez commented Mar 8, 2022

Looks good. Can we stop excluding the file from flake8?

@datapythonista
Not yet. Fixture issues are still reported by flake 8.

@datapythonista
Copy link
Member

This has conflicts, can you resolve them pelase?

Copy link
Member

@datapythonista datapythonista left a 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
Comment on lines 180 to 181
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
Copy link
Member

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
Comment on lines 259 to 260
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@LucyJimenez
Copy link
Contributor Author

@datapythonista I included the last comments and resolved the conflicts. The PR is ready for review. Thanks a lot!

@datapythonista datapythonista merged commit e376304 into airspeed-velocity:master Mar 10, 2022
@datapythonista
Copy link
Member

Thanks @LucyJimenez, very nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants