File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -199,14 +199,13 @@ def _add_new_library_version(
199199 library_config ["version" ] = "0.0.0"
200200
201201
202- def _prepare_new_library_config (library_config : Dict , repo : str ) -> Dict :
202+ def _prepare_new_library_config (library_config : Dict ) -> Dict :
203203 """
204204 Prepares the new library's configuration by removing temporary keys and
205205 adding default values.
206206
207207 Args:
208208 library_config (Dict): The raw library configuration.
209- repo (str): The path to the repository.
210209
211210 Returns:
212211 Dict: The prepared library configuration.
@@ -260,7 +259,7 @@ def handle_configure(
260259 # configure-request.json contains the library definitions.
261260 request_data = _read_json_file (f"{ librarian } /{ CONFIGURE_REQUEST_FILE } " )
262261 new_library_config = _get_new_library_config (request_data )
263- prepared_config = _prepare_new_library_config (new_library_config , repo )
262+ prepared_config = _prepare_new_library_config (new_library_config )
264263
265264 # Write the new library configuration to configure-response.json.
266265 _write_json_file (f"{ librarian } /configure-response.json" , prepared_config )
Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ def test_prepare_new_library_config(mocker):
330330 "version" : "" ,
331331 }
332332
333- prepared_config = _prepare_new_library_config (raw_config , "repo" )
333+ prepared_config = _prepare_new_library_config (raw_config )
334334
335335 # Check that status is removed
336336 assert "status" not in prepared_config ["apis" ][0 ]
@@ -354,7 +354,7 @@ def test_prepare_new_library_config_preserves_existing_values(mocker):
354354 "version" : "4.5.6" ,
355355 }
356356
357- prepared_config = _prepare_new_library_config (raw_config , "repo" )
357+ prepared_config = _prepare_new_library_config (raw_config )
358358
359359 # Check that status is removed
360360 assert "status" not in prepared_config ["apis" ][0 ]
You can’t perform that action at this time.
0 commit comments