Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Environment table #286

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
Loading
from
Open
Changes from 1 commit
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
Next Next commit
Do not handle Tags as list in envirnoment table
  • Loading branch information
werdeil authored and Vincent VERDEIL committed May 18, 2020
commit 4552a238116dbbd0091a8e0175ef742536b2941f
4 changes: 2 additions & 2 deletions 4 pytest_html/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# ansi2html is not installed
ANSI = False

from py.xml import html, raw
from py.xml import html, raw, Tag

from . import extras
from . import __version__, __pypi_url__
Expand Down Expand Up @@ -571,7 +571,7 @@ def _generate_environment(self, config):
value = metadata[key]
if isinstance(value, str) and value.startswith("http"):
value = html.a(value, href=value, target="_blank")
elif isinstance(value, (list, tuple, set)):
elif isinstance(value, (list, tuple, set)) and not isinstance(value, Tag):
value = ", ".join(str(i) for i in sorted(map(str, value)))
elif isinstance(value, dict):
sorted_dict = {k: value[k] for k in sorted(value)}
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.