Skip to content

Commit

Permalink
test: fix spelling and typing
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-laporte-pro committed Feb 2, 2024
1 parent 1d1469a commit f380a44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/launcher/test_ssh_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@


@pytest.mark.unit_test
def test_parse_cpu_used():
def test_parse_cpu_used() -> None:
assert parse_cpu_used("3/28/1/32") == 100 * 3 / (3 + 28)


@pytest.mark.unit_test
def test_parse_cpu_load():
def test_parse_cpu_load() -> None:
sinfo_output = "0.01 24 \n0.01 24 \nN/A 24 \n9.94 24 "
assert math.isclose(
parse_cpu_load(sinfo_output),
Expand All @@ -21,7 +21,7 @@ def test_parse_cpu_load():


@pytest.mark.unit_test
def test_calculates_slurm_load_whithout_pkey_fails():
def test_calculates_slurm_load_without_private_key_fails() -> None:
ssh_config = Mock()
with pytest.raises(SlurmError):
calculates_slurm_load(ssh_config, "fake_partition")

0 comments on commit f380a44

Please sign in to comment.