File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,6 @@ def bootstrap_name(self):
370
370
@mock .patch ("pythonforandroid.bootstraps.service_only.open" , create = True )
371
371
@mock .patch ("pythonforandroid.bootstraps.webview.open" , create = True )
372
372
@mock .patch ("pythonforandroid.bootstraps.sdl2.open" , create = True )
373
- @mock .patch ("pythonforandroid.distribution.open" , create = True )
374
373
@mock .patch (
375
374
"pythonforandroid.python.GuestPythonRecipe.create_python_bundle"
376
375
)
@@ -389,7 +388,6 @@ def test_run_distribute(
389
388
mock_ensure_dir ,
390
389
mock_strip_libraries ,
391
390
mock_create_python_bundle ,
392
- mock_open_dist_files ,
393
391
mock_open_sdl2_files ,
394
392
mock_open_webview_files ,
395
393
mock_open_service_only_files ,
@@ -423,9 +421,12 @@ def test_run_distribute(
423
421
self .ctx .python_modules = ["requests" ]
424
422
self .ctx .archs = [ArchARMv7_a (self .ctx )]
425
423
426
- bs .run_distribute ()
424
+ with mock .patch (
425
+ 'pythonforandroid.distribution.Distribution.save_info' ,
426
+ ) as mock_open_save_info :
427
+ bs .run_distribute ()
427
428
428
- mock_open_dist_files . assert_called_once_with ( "dist_info.json" , "w" )
429
+ mock_open_save_info . assert_called ( )
429
430
mock_open_bootstraps = {
430
431
"sdl2" : mock_open_sdl2_files ,
431
432
"webview" : mock_open_webview_files ,
You can’t perform that action at this time.
0 commit comments