Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.

[WIP] tests: skip test_pytest_html if not installed #58

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
1 change: 1 addition & 0 deletions tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def test_3():
['--tests-per-worker=2']
])
def test_pytest_html(testdir, cli_args):
pytest.importorskip("pytest_html")
report = testdir.tmpdir.join('report.html')
testdir.makepyfile("""
def test_1():
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ envlist =
[testenv]
deps =
pytest>=3.0
pytest-html>=1.19.0
six>=1.11.0
tblib
coverage: pytest-cov
Expand Down