We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b577d20 commit a8292bbCopy full SHA for a8292bb
1 file changed
pytest_html/plugin.py
@@ -31,6 +31,9 @@
31
from . import __version__, __pypi_url__
32
33
34
+fixture_extras = []
35
+
36
37
def pytest_addhooks(pluginmanager):
38
from . import hooks
39
@@ -95,7 +98,6 @@ def pytest_runtest_makereport(item, call):
95
98
outcome = yield
96
99
report = outcome.get_result()
97
100
if report.when == "call":
- fixture_extras = item.funcargs.get("extra", [])
101
plugin_extras = getattr(report, "extra", [])
102
report.extra = fixture_extras + plugin_extras
103
@@ -110,7 +112,8 @@ def extra():
110
112
def test_foo(extra):
111
113
extra.append(pytest_html.extras.url('http://www.example.com/'))
114
"""
- return []
115
+ del fixture_extras[:]
116
+ return fixture_extras
117
118
119
def data_uri(content, mime_type="text/plain", charset="utf-8"):
0 commit comments