Skip to content

Commit

Permalink
fix: Add config to report object
Browse files Browse the repository at this point in the history
  • Loading branch information
BeyondEvil committed Mar 8, 2023
1 parent 0408b0d commit c832d34
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pytest_html/nextgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def insert(self, index, html):
self._html[index] = html

class Report:
def __init__(self, title, duration_format):
def __init__(self, title, duration_format, config):
self._config = config
self._data = {
"title": title,
"collectedItems": 0,
Expand All @@ -57,6 +58,10 @@ def __init__(self, title, duration_format):
"additionalSummary": defaultdict(list),
}

@property
def config(self):
return self._config

@property
def data(self):
return self._data
Expand Down

0 comments on commit c832d34

Please sign in to comment.