Skip to content

Commit b1e36a1

Browse files
author
benoit-cty
committed
lint
1 parent 5027c05 commit b1e36a1

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tests/test_core_util.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44

55
import pytest
66

7-
from codecarbon.core.util import backup, count_cpus, detect_cpu_model, is_mac_arm, resolve_path
7+
from codecarbon.core.util import (
8+
backup,
9+
count_cpus,
10+
detect_cpu_model,
11+
is_mac_arm,
12+
resolve_path,
13+
)
814

915

1016
def test_detect_cpu_model_caching():
@@ -73,6 +79,8 @@ def test_backup():
7379
)
7480
def test_is_mac_arm(cpu_model, expected):
7581
assert is_mac_arm(cpu_model) == expected
82+
83+
7684
def test_count_cpus_no_slurm():
7785
with mock.patch("codecarbon.core.util.SLURM_JOB_ID", None):
7886
with mock.patch("codecarbon.core.util.psutil.cpu_count", return_value=4):

0 commit comments

Comments
 (0)