From aba703a77e66214e3ec3e91b63628a149f88504f Mon Sep 17 00:00:00 2001 From: diegomarquezp Date: Wed, 28 Feb 2024 19:17:48 +0000 Subject: [PATCH] simplify argument usage in unit test --- library_generation/test/unit_tests.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/library_generation/test/unit_tests.py b/library_generation/test/unit_tests.py index 355b191a24..c9f20cb8d3 100644 --- a/library_generation/test/unit_tests.py +++ b/library_generation/test/unit_tests.py @@ -378,8 +378,7 @@ def test_get_library_returns_api_shortname(self): self.assertEqual("secretmanager", util.get_library_name(library_2)) def test_generate_prerequisite_files_non_monorepo_success(self): - num_libraries = 1 - library_path = self.__setup_prerequisite_files(num_libraries) + library_path = self.__setup_prerequisite_files(num_libraries=1) self.__compare_files( f"{library_path}/.repo-metadata.json", @@ -396,8 +395,7 @@ def test_generate_prerequisite_files_non_monorepo_success(self): ) def test_generate_prerequisite_files_monorepo_success(self): - num_libraries = 2 - library_path = self.__setup_prerequisite_files(num_libraries) + library_path = self.__setup_prerequisite_files(num_libraries=2) self.__compare_files( f"{library_path}/.repo-metadata.json",