From f36ae318fd988d585dfc80871e5441e57853d66e Mon Sep 17 00:00:00 2001 From: harisreedhar Date: Tue, 17 Feb 2026 15:39:07 +0530 Subject: [PATCH] reformat test_api_state.py --- tests/test_api_state.py | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/tests/test_api_state.py b/tests/test_api_state.py index eb1e6689..9a75a4f7 100644 --- a/tests/test_api_state.py +++ b/tests/test_api_state.py @@ -25,12 +25,23 @@ def before_all() -> None: @pytest.fixture(scope = 'module') def test_client() -> Iterator[TestClient]: program = ArgumentParser() - source_paths_action = program.add_argument('--source-paths', nargs = '+') - target_path_action = program.add_argument('--target-path') - execution_providers_action = program.add_argument('--execution-providers', nargs = '+') - args_store.register_argument(source_paths_action, scopes = [ 'api' ]) - args_store.register_argument(target_path_action, scopes = [ 'api' ]) - args_store.register_argument(execution_providers_action, scopes = [ 'api' ]) + args_store.register_argument( + program.add_argument( + '--source-paths', + nargs = '+'), + scopes = [ 'api' ] + ) + args_store.register_argument( + program.add_argument( + '--target-path'), + scopes = [ 'api' ] + ) + args_store.register_argument( + program.add_argument( + '--execution-providers', + nargs = '+'), + scopes = [ 'api' ] + ) state_manager.init_item('execution_providers', [ 'cpu' ]) with TestClient(create_api()) as test_client: