From b623e901c14969ea01d393e796a2e08edd5dadba Mon Sep 17 00:00:00 2001 From: Guillaume Mulocher Date: Thu, 1 Aug 2024 10:33:00 +0200 Subject: [PATCH] Apply suggestions from code review --- anta/runner.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/anta/runner.py b/anta/runner.py index 7110ec023..d2ca144a0 100644 --- a/anta/runner.py +++ b/anta/runner.py @@ -83,8 +83,8 @@ async def run_tests(tests_generator: AsyncGenerator[Coroutine[Any, Any, TestResu with a limit on the number of concurrent tests. It yields test results as each test completes. - Args: - ---- + Parameters + ----------- tests_generator: An asynchronous generator that yields test coroutines. limit: The maximum number of concurrent tests to run. @@ -214,8 +214,8 @@ async def generate_tests(selected_tests: defaultdict[AntaDevice, set[AntaTestDef It creates an async generator of coroutines which are created by the `test` method of the AntaTest instances. Each coroutine is a test to run. - Args: - ---- + Parameters + ----------- selected_tests: A mapping of devices to the tests to run. The selected tests are created by the `prepare_tests` function. Yields