-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use pre-commit in project #7
Conversation
tests/test_verify_base_url.py
Outdated
from requests.packages.urllib3.util.retry import Retry | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def httpserver(httpserver): | ||
return httpserver |
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.
For some reason, some of the tests fails when using python 2.7
without this, seemingly, redundant fixture. Any idea why, @nicoddemus ?
Tried replacing it with pytestmark = pytest.mark.usefixture("httpserver")
without success.
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.
Or maybe @davehunt knows/remembers?
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 would agree this looks redundant, but regretfully I don't recall why this was necessary.
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 just added it back, with a note about removing it when we drop 2.7 support.
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.
Typo, and the failing Travis CI build. Otherwise, looks good.
development.rst
Outdated
Development | ||
=========== | ||
|
||
To contribute to `pytest-html` you can use `Pipenv`_ to manage |
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.
pytest-base-url
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.
Done
Since
black
wasn't used previously, a lot of the changes are due to running it.