Skip to content

Commit

Permalink
fix: upgrade pip before running tox
Browse files Browse the repository at this point in the history
  • Loading branch information
BeyondEvil committed Jul 15, 2022
1 parent a7197b0 commit c330437
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions testing/test_pytest_html.py
Expand Up @@ -28,12 +28,12 @@
# builtins.open = _open


def remove_deprecation_from_recwarn(recwarn):
# TODO: Temporary hack until they fix
# https://github.com/pytest-dev/pytest/issues/6936
return [
item for item in recwarn if "TerminalReporter.writer" not in repr(item.message)
]
# def remove_deprecation_from_recwarn(recwarn):
# # TODO: Temporary hack until they fix
# # https://github.com/pytest-dev/pytest/issues/6936
# return [
# item for item in recwarn if "TerminalReporter.writer" not in repr(item.message)
# ]


def run(testdir, path="report.html", *args):
Expand Down Expand Up @@ -1021,8 +1021,8 @@ def test_css(self, testdir, recwarn, colors):
cssargs.extend(["--css", path])
result, html = run(testdir, "report.html", "--self-contained-html", *cssargs)
assert result.ret == 0
warnings = remove_deprecation_from_recwarn(recwarn)
assert len(warnings) == 0
# warnings = remove_deprecation_from_recwarn(recwarn)
# assert len(warnings) == 0
for k, v in css.items():
assert str(v["path"]) in html
assert v["style"] in html
Expand Down

0 comments on commit c330437

Please sign in to comment.