Skip to content

pytest_html_results_table_html hook is not passed any data #667

Closed
@VegarS

Description

@VegarS

I am testing the 4.0.0rc4 release and have had some issues porting code that modifies the captured log output. (I want to hide the setup output from the log, which I have achieved without problems in the 3.x.x releases)

The pytest_html_results_table_html hook is always passed an empty data object, so it is impossible to modify the output. Printing data.html argument inside the hook always yields the same value: {'html': []}

Additionally, adding elements to data.html has no effect unless I delete something from data first (which sets data._replace_log = True).

How is this intended to work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions