Skip to content

Commit 61dc723

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ce0fd6a commit 61dc723

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pytest_html/basereport.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# This Source Code Form is subject to the terms of the Mozilla Public
22
# License, v. 2.0. If a copy of the MPL was not distributed with this
33
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4-
from datetime import datetime, timezone
54
import json
65
import math
76
import os
87
import re
98
import time
109
import warnings
1110
from collections import defaultdict
11+
from datetime import datetime
12+
from datetime import timezone
1213
from html import escape
1314
from pathlib import Path
1415

@@ -42,7 +43,7 @@ def __init__(self, report_path, config, report_data, template, css):
4243
def css(self):
4344
# implement in subclasses
4445
return
45-
46+
4647
def _expand_path(self, report_path):
4748
# generated_time: UTC date and time, in ISO format with : replaced with -.
4849
# report-%(generated_time).html will become report-2025-10-08T21-45-08.237134.html
@@ -51,7 +52,7 @@ def _expand_path(self, report_path):
5152
"generated_time": self._generated.isoformat().replace(":", "-"),
5253
}
5354
return path_expanded
54-
55+
5556
def _asset_filename(self, test_id, extra_index, test_index, file_extension):
5657
return "{}_{}_{}.{}".format(
5758
re.sub(r"[^\w.]", "_", test_id),

0 commit comments

Comments
 (0)