Skip to content

Commit 833aead

Browse files
committed
chore(tests[legacy_test]): pydocstyle manual fixes
1 parent 530e46c commit 833aead

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/legacy_api/test_test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Tests for libtmux's testing utilities."""
12
from time import time
23

34
import pytest
@@ -7,6 +8,7 @@
78

89

910
def test_retry_three_times() -> None:
11+
"""Test retry_until()."""
1012
ini = time()
1113
value = 0
1214

@@ -28,6 +30,7 @@ def call_me_three_times() -> bool:
2830

2931

3032
def test_function_times_out() -> None:
33+
"""Test time outs with retry_until()."""
3134
ini = time()
3235

3336
def never_true() -> bool:
@@ -41,7 +44,8 @@ def never_true() -> bool:
4144
assert abs((end - ini) - 1.0) < 0.01
4245

4346

44-
def test_function_times_out_no_rise() -> None:
47+
def test_function_times_out_no_raise() -> None:
48+
"""Tests retry_until() with exception raising disabled."""
4549
ini = time()
4650

4751
def never_true() -> bool:
@@ -55,6 +59,7 @@ def never_true() -> bool:
5559

5660

5761
def test_function_times_out_no_raise_assert() -> None:
62+
"""Tests retry_until() with exception raising disabled, returning False."""
5863
ini = time()
5964

6065
def never_true() -> bool:
@@ -68,6 +73,7 @@ def never_true() -> bool:
6873

6974

7075
def test_retry_three_times_no_raise_assert() -> None:
76+
"""Tests retry_until() with exception raising disabled, with closure variable."""
7177
ini = time()
7278
value = 0
7379

0 commit comments

Comments
 (0)