File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
openandroidinstaller/views Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ def enable_button_if_ready(self, e):
597597 )
598598 and recovery_works_with_device (
599599 supported_device_codes = self .state .config .supported_device_codes ,
600- recovery_path = self .state .recovery_path
600+ recovery_path = self .state .recovery_path ,
601601 )
602602 ):
603603 # if image and recovery work for device allow to move on, otherwise display message
Original file line number Diff line number Diff line change @@ -39,11 +39,15 @@ def test_update_progress_bar():
3939 assert progress_indicator .progress_bar
4040
4141 # test if percentages are parsed correctly and update is performed
42- for percentage in range (0 , 47 ):
42+ for percentage in range (1 , 47 ):
4343 line = f"serving: '/home/tobias/Repositories/openandroidinstaller/images/google-pixel3a/lineage-19.1-20221004-nightly-sargo-signed.zip' (~{ percentage } %)\n "
4444 progress_indicator .display_progress_bar (line )
4545 assert progress_indicator .progress_bar .value == percentage / 100
4646
4747 # test if the finishing print is detected and updated correctly.
4848 progress_indicator .display_progress_bar (line = "Total xfer: 1.00x\n " )
4949 assert progress_indicator .progress_bar .value == 0.99
50+
51+ # test if the final set_progress_bar is working correctly
52+ progress_indicator .set_progress_bar (100 )
53+ assert progress_indicator .progress_bar .value == 1.0
You can’t perform that action at this time.
0 commit comments