Skip to content

Commit c424245

Browse files
authored
fixed self._generated attribute order
1 parent 61dc723 commit c424245

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pytest_html/basereport.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
class BaseReport:
2323
def __init__(self, report_path, config, report_data, template, css):
24+
self._generated = datetime.now(tz=timezone.utc)
25+
2426
report_path_expanded = self._expand_path(report_path)
2527
self._report_path = (
2628
Path.cwd() / Path(report_path_expanded).expanduser()
@@ -34,7 +36,6 @@ def __init__(self, report_path, config, report_data, template, css):
3436
)
3537

3638
self._reports = defaultdict(dict)
37-
self._generated = datetime.now(tz=timezone.utc)
3839
self._report = report_data
3940
self._report.title = self._report_path.name
4041
self._suite_start_time = time.time()

0 commit comments

Comments
 (0)