Skip to content

Commit c260f5e

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def test_load_recent_data_raw(self, tmp_path: Path, test_dates: dict[str, str],
250250

251251
test_data = []
252252
for i in range(3):
253-
record_dict = {field: "" for field in fields}
253+
record_dict = dict.fromkeys(fields, "")
254254
record_dict["JobIDRaw"] = f"job_{i}"
255255
record_dict["User"] = f"user{i}"
256256
test_data.append(record_dict)

tests/test_node_usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_extract_node_usage_multi_node(self) -> None:
6161
# Each node should get 1/4 of the resources
6262
result_dicts = result.to_dicts()
6363
for i, node_data in enumerate(result_dicts):
64-
assert node_data["node"] == f"node00{i+1}"
64+
assert node_data["node"] == f"node00{i + 1}"
6565
assert node_data["cpu_hours"] == 25.0 # 100/4
6666
assert node_data["gpu_hours"] == 5.0 # 20/4
6767
assert node_data["elapsed_hours"] == 0.5 # 2/4

0 commit comments

Comments
 (0)