Skip to content

Commit 049edbb

Browse files
fix tests (#138)
1 parent 6c2f69b commit 049edbb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/smoke-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ jobs:
7272
HEADER="repository name,author name,author login,datetime,page,action,revision id,added lines,deleted lines"
7373
;;
7474
--contributors)
75-
HEADER="repository_name,login,name,email,url,permissions,total_commits,node_id,type,bio,site_admin"
75+
HEADER="repository name,login,name,email,url,permissions,total commits,node id,type,bio,site admin"
7676
;;
7777
--workflow_runs)
78-
HEADER="repository_name,display_title,event,head_branch,head_sha,name,path,started_at,total_duration,conclusion,status,url"
78+
HEADER="repository name,display title,event,head branch,head sha,name,path,started at,total duration,conclusion,status,url"
7979
;;
8080
*)
8181
echo "Unknown ARG: '${{ matrix.args }}'"

utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ def log_title(title: str, title_len: int = TITLE_LEN):
2626

2727
@staticmethod
2828
def log_to_csv(csv_name: str, field_names: tuple[str], row: dict | None = None):
29+
field_names = list(map(lambda x: x.replace('_', ' '), field_names))
30+
if row is not None:
31+
row = {k.replace('_', ' '): v for k, v in row.items()}
2932
if isinstance(row, dict):
3033
with open(csv_name, 'a', encoding='utf-8', newline='') as file:
3134
writer = csv.DictWriter(file, fieldnames=field_names)

0 commit comments

Comments
 (0)