From 071295ca5eb57bf4dc87250bcfc100904bc7c4af Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 25 Nov 2023 12:31:30 -0600 Subject: [PATCH] chore(tests[test]): pydocstyle manual fixes --- tests/test_test.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_test.py b/tests/test_test.py index 741a340bd..d92e60e81 100644 --- a/tests/test_test.py +++ b/tests/test_test.py @@ -1,3 +1,4 @@ +"""Tests for libtmux's testing utilities.""" from time import time import pytest @@ -7,6 +8,7 @@ def test_retry_three_times() -> None: + """Test retry_until().""" ini = time() value = 0 @@ -28,6 +30,7 @@ def call_me_three_times() -> bool: def test_function_times_out() -> None: + """Test time outs with retry_until().""" ini = time() def never_true() -> bool: @@ -41,7 +44,8 @@ def never_true() -> bool: assert abs((end - ini) - 1.0) < 0.01 -def test_function_times_out_no_rise() -> None: +def test_function_times_out_no_raise() -> None: + """Tests retry_until() with exception raising disabled.""" ini = time() def never_true() -> bool: @@ -55,6 +59,7 @@ def never_true() -> bool: def test_function_times_out_no_raise_assert() -> None: + """Tests retry_until() with exception raising disabled, returning False.""" ini = time() def never_true() -> bool: @@ -68,6 +73,7 @@ def never_true() -> bool: def test_retry_three_times_no_raise_assert() -> None: + """Tests retry_until() with exception raising disabled, with closure variable.""" ini = time() value = 0