2323
2424class ApplicationsTests (BaseTestCase ):
2525
26- def test_background_app (self ):
26+ def test_background_app (self ) -> None :
2727 self .driver .background_app (1 )
2828 sleep (3 )
2929 self .driver .launch_app ()
3030
31- def test_is_app_installed (self ):
31+ def test_is_app_installed (self ) -> None :
3232 self .assertFalse (self .driver .is_app_installed ('sdfsdf' ))
3333 self .assertTrue (self .driver .is_app_installed (APIDEMO_PKG_NAME ))
3434
35- def test_install_app (self ):
35+ def test_install_app (self ) -> None :
3636 self .skipTest ('This causes the server to crash. no idea why' )
3737 self .assertFalse (self .driver .is_app_installed ('io.selendroid.testapp' ))
3838 self .driver .install_app ('/Users/isaac/code/python-client/test/apps/selendroid-test-app.apk' )
3939 self .assertTrue (self .driver .is_app_installed ('io.selendroid.testapp' ))
4040
41- def test_remove_app (self ):
41+ def test_remove_app (self ) -> None :
4242 self .assertTrue (self .driver .is_app_installed (APIDEMO_PKG_NAME ))
4343 self .driver .remove_app (APIDEMO_PKG_NAME )
4444 self .assertFalse (self .driver .is_app_installed (APIDEMO_PKG_NAME ))
4545
46- def test_close_and_launch_app (self ):
46+ def test_close_and_launch_app (self ) -> None :
4747 self .driver .close_app ()
4848 self .driver .launch_app ()
4949 activity = self .driver .current_activity
5050 self .assertEqual ('.ApiDemos' , activity )
5151
52- def test_app_management (self ):
52+ def test_app_management (self ) -> None :
5353 app_id = self .driver .current_package
5454 self .assertEqual (self .driver .query_app_state (app_id ),
5555 ApplicationState .RUNNING_IN_FOREGROUND )
@@ -60,19 +60,19 @@ def test_app_management(self):
6060 self .assertEqual (self .driver .query_app_state (app_id ),
6161 ApplicationState .RUNNING_IN_FOREGROUND )
6262
63- def test_app_strings (self ):
63+ def test_app_strings (self ) -> None :
6464 strings = self .driver .app_strings ()
6565 self .assertEqual (u'You can\' t wipe my data, you are a monkey!' , strings [u'monkey_wipe_data' ])
6666
67- def test_app_strings_with_language (self ):
67+ def test_app_strings_with_language (self ) -> None :
6868 strings = self .driver .app_strings ('en' )
6969 self .assertEqual (u'You can\' t wipe my data, you are a monkey!' , strings [u'monkey_wipe_data' ])
7070
71- def test_app_strings_with_language_and_file (self ):
71+ def test_app_strings_with_language_and_file (self ) -> None :
7272 strings = self .driver .app_strings ('en' , 'some_file' )
7373 self .assertEqual (u'You can\' t wipe my data, you are a monkey!' , strings [u'monkey_wipe_data' ])
7474
75- def test_reset (self ):
75+ def test_reset (self ) -> None :
7676 self .driver .reset ()
7777 self .assertTrue (self .driver .is_app_installed (APIDEMO_PKG_NAME ))
7878
0 commit comments