@@ -1142,6 +1142,10 @@ def setUp(self):
1142
1142
sh .run_command ('complete -r python python2 python3' )
1143
1143
output = sh .run_command (self .install_cmd )
1144
1144
self .assertEqual (output , '' )
1145
+ # Register a dummy completion with an external argcomplete script
1146
+ # to ensure this doesn't overwrite our previous registration.
1147
+ output = sh .run_command ('eval "$(register-python-argcomplete dummy --external-argcomplete-script dummy)"' )
1148
+ self .assertEqual (output , '' )
1145
1149
self .sh = sh
1146
1150
1147
1151
def test_one_space_after_exact (self ):
@@ -1250,6 +1254,10 @@ def setUp(self):
1250
1254
# by passing 'prog' as the second argument.
1251
1255
output = sh .run_command ('eval `register-python-argcomplete --shell tcsh dummy prog`' )
1252
1256
self .assertEqual (output , '' )
1257
+ # Register a dummy completion with an external argcomplete script
1258
+ # to ensure this doesn't overwrite our previous registration.
1259
+ output = sh .run_command ('eval `register-python-argcomplete --shell tcsh dummy --external-argcomplete-script dummy`' )
1260
+ self .assertEqual (output , '' )
1253
1261
self .sh = sh
1254
1262
1255
1263
def tearDown (self ):
@@ -1285,6 +1293,10 @@ def setUp(self):
1285
1293
# by passing 'prog' as the second argument.
1286
1294
output = sh .run_command ('register-python-argcomplete --shell fish dummy prog | .' )
1287
1295
self .assertEqual (output , '' )
1296
+ # Register a dummy completion with an external argcomplete script
1297
+ # to ensure this doesn't overwrite our previous registration.
1298
+ output = sh .run_command ('register-python-argcomplete --shell fish dummy --external-argcomplete-script dummy | .' )
1299
+ self .assertEqual (output , '' )
1288
1300
self .sh = sh
1289
1301
1290
1302
def tearDown (self ):
0 commit comments