Skip to content

Commit 8e31b3e

Browse files
committed
testing: show time test session started at.
1 parent c381b9d commit 8e31b3e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

domdf_python_tools/testing.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#
3131

3232
# stdlib
33+
import datetime
3334
import itertools
3435
import random
3536
import sys
@@ -367,3 +368,11 @@ def my_test(tmp_pathplus: PathPlus):
367368
""" # noqa: D400
368369

369370
return PathPlus(tmp_path)
371+
372+
373+
def pytest_report_header(config, startdir):
374+
"""
375+
Prints the start time of the pytest session.
376+
"""
377+
378+
return f"Test session started at {datetime.datetime.now():%H:%M:%S}"

0 commit comments

Comments
 (0)