@@ -193,8 +193,8 @@ def test_register_feature_id(self):
193193 session = get_session ()
194194 globalargs .detect_migration_breakage (
195195 parsed_args ,
196+ session ,
196197 [],
197- session
198198 )
199199 # Verify the correct feature ID is registered during the
200200 # provide-client-params event.
@@ -216,8 +216,8 @@ def test_ecr_login_v2_debug(self):
216216 with capture_output () as output :
217217 globalargs .detect_migration_breakage (
218218 parsed_args ,
219+ session ,
219220 remaining_args ,
220- session
221221 )
222222 # Verify the expected warning is printed
223223 self .assertIn (
@@ -235,8 +235,8 @@ def test_ecr_login_v2_debug_env_var(self):
235235 with mock .patch ('os.environ' , env ):
236236 globalargs .detect_migration_breakage (
237237 parsed_args ,
238+ session ,
238239 remaining_args ,
239- session
240240 )
241241 # Verify the expected warning is printed
242242 self .assertIn (
@@ -251,7 +251,7 @@ def test_v2_debug_python_utf8_env_var(self):
251251 environ = {'PYTHONUTF8' : '1' }
252252 with mock .patch ('os.environ' , environ ):
253253 with capture_output () as output :
254- globalargs .detect_migration_breakage (parsed_args , [], session )
254+ globalargs .detect_migration_breakage (parsed_args , session , [] )
255255 self .assertIn (
256256 'The AWS CLI v2 does not support The `PYTHONUTF8` and '
257257 '`PYTHONIOENCODING` environment variables, and instead '
@@ -265,7 +265,7 @@ def test_v2_debug_python_utf8_resolved_env_var(self):
265265 environ = {'PYTHONUTF8' : '1' , 'AWS_CLI_FILE_ENCODING' : 'UTF-8' }
266266 with mock .patch ('os.environ' , environ ):
267267 with capture_output () as output :
268- globalargs .detect_migration_breakage (parsed_args , [], session )
268+ globalargs .detect_migration_breakage (parsed_args , session , [] )
269269 self .assertNotIn (
270270 'AWS CLI v2 UPGRADE WARNING: The PYTHONUTF8 and '
271271 'PYTHONIOENCODING environment variables are unsupported '
@@ -279,7 +279,7 @@ def test_v2_debug_python_io_encoding_env_var(self):
279279 environ = {'PYTHONIOENCODING' : 'UTF8' }
280280 with mock .patch ('os.environ' , environ ):
281281 with capture_output () as output :
282- globalargs .detect_migration_breakage (parsed_args , [], session )
282+ globalargs .detect_migration_breakage (parsed_args , session , [] )
283283 self .assertIn (
284284 'The AWS CLI v2 does not support The `PYTHONUTF8` and '
285285 '`PYTHONIOENCODING` environment variables, and instead '
@@ -290,7 +290,7 @@ def test_v2_debug_python_io_encoding_env_var(self):
290290 def test_v2_debug_s3_sigv2 (self ):
291291 parsed_args = FakeParsedArgs (v2_debug = True )
292292 session = get_session ()
293- globalargs .detect_migration_breakage (parsed_args , [], session )
293+ globalargs .detect_migration_breakage (parsed_args , session , [] )
294294 with capture_output () as output :
295295 session .emit (
296296 'choose-signer.s3.*' ,
@@ -308,7 +308,7 @@ def test_v2_debug_s3_sigv2(self):
308308 def test_v2_debug_s3_us_east_1 (self ):
309309 parsed_args = FakeParsedArgs (v2_debug = True , region = 'us-east-1' )
310310 session = get_session ()
311- globalargs .detect_migration_breakage (parsed_args , [], session )
311+ globalargs .detect_migration_breakage (parsed_args , session , [] )
312312 def mock_get (key : str ):
313313 if key == 'retries' :
314314 return {'invocation-id' : '012345' }
@@ -335,7 +335,7 @@ def mock_get(key: str):
335335 def test_v2_debug_s3api_us_east_1 (self ):
336336 parsed_args = FakeParsedArgs (v2_debug = True , region = 'us-east-1' )
337337 session = get_session ()
338- globalargs .detect_migration_breakage (parsed_args , [], session )
338+ globalargs .detect_migration_breakage (parsed_args , session , [] )
339339
340340 def mock_get (key : str ):
341341 if key == 'retries' :
0 commit comments