Closed
Description
I added a call to configure_html_report_env()
so that I could display user passed in options used to execute the tests and any values that are set to 0
, None
, and False
are being filtered out in this call https://github.com/pytest-dev/pytest-html/blob/master/pytest_html/plugin.py#L469.
@pytest.fixture(scope='session', autouse=True)
def configure_html_report_env(request):
env = {'My Custom Option 1': 0,
'My Custom Option 2': None,
'My Custom Option 3': False,
'My Custom Option 4': str(0),
'My Custom Option 5': str(None),
'My Custom Option 6': str(False)}
request.config._metadata.update(env)
Is there a reason for this filter? I can wrap what I pass in with str()
but I wanted to make sure I am correctly following how this section should be used. Thanks!