Skip to content

Commit

Permalink
chore(tests[test]): pydocstyle manual fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Nov 25, 2023
1 parent 0456fca commit 071295c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Tests for libtmux's testing utilities."""
from time import time

import pytest
Expand All @@ -7,6 +8,7 @@


def test_retry_three_times() -> None:
"""Test retry_until()."""
ini = time()
value = 0

Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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

Expand Down

0 comments on commit 071295c

Please sign in to comment.