* bump pre-commit deps
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* remove phantomjs dependency (#424)
* properly classify all npm dependencies (#425)
* Move the changelog to read the docs (#423)
* split plugin.py into smaller files (#427)
* Implement the visible URL query parameter to control visibility of test results on page load. (#433)
* enable control of test result visability via query params
* Allow for redacting of environment table values (#431)
* Disable Codecov (#480)
* Disable Codecov
* Disable pypy3 on mac
* Add Tests.yml reusable workflow (#484)
* Use the tests reusable workflow (#486)
* Migrate to precommit.ci (#487)
* Separate Nightly workflow (#488)
Co-authored-by: Gleb Nikonorov <gleb.i.nikonorov@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* first attempt at a working solution
* final solution, no tests
* Update README.rst
Add documentation on how to provide a custom display value for duration formatters
* temp
* finalize the change
* undo test report changes
* fixup tests
* Clarify default duration column data formatting
* fix failing tests
Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
This is for pytest-dev/pytest-selenium#237.
My original change was redundant with pytest-dev/pytest-html#277, so just
update tests and acknowledgements for the author of #277, the author of #287,
and the reporters of #265 and pytest-dev/pytest-selenium#237.
Code for the video extra has been extracted to a function to clean up a bit the if/elif/elif that is starting to
get pretty big. Maybe the other conditions could be extracted to their own method to clean up a bit. Once again,
there seems to be a lot of code duplication with image, so we may want to refactor images, videos, and audio as
a media type and have some kind of template method.
Basic unit tests were added to make sure that the extra was correctly added to the report when the extra was
requested.
* Close opened resource.
* Update pytest_html/plugin.py
Co-Authored-By: Bruno Rocha <rochacbruno@users.noreply.github.com>
* Use `f""` instead of `.format()` call.
* Add validation for raised warnings to tests.
* Drop support for legacy Python 2.7
* Upgrade Python syntax with pyupgrade --py36-plus
* Require pytest 5+, supports only Python 3
* Format with Black
When the --html flag is used in pytest.ini with "addopts" and the
report title is stored in an environment variable, the name of the
environment variable was used as the report title.
In other words, the environment variable was never expanded.
Fixes: #201
* added assets name hashing option
* from command line option to config option
* new naming strategy
* fix
* Flake8 issues fixed
* more Flake8 issues fixed