Skip to content

Commit 127cded

Browse files
committed
fix filenaming windows
1 parent 60f60f4 commit 127cded

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
import platform
55
import sys
6+
import re
67
from typing import Callable, List, Tuple
78

89
import pytest
@@ -37,6 +38,7 @@ def log_content(opt_ci: bool, driver: Firefox, test_name: str) -> None:
3738
"""
3839
artifacts_loc = "artifacts" if opt_ci else ""
3940
current_time = str(datetime.datetime.now())
41+
current_time = re.sub(r'[^\w_. -]', '_', current_time)
4042
fullpath_chrome = os.path.join(
4143
artifacts_loc, f"{test_name}_{current_time}_content.html"
4244
)

0 commit comments

Comments
 (0)