Ejemplo n.º 1
0
 def test_request_without_login(self, valid_credentials_path):
     # Simulate a request without the token generated during login.
     playstore = Playstore(valid_credentials_path)
     del playstore.auth_token
     with pytest.raises(RuntimeError):
         # noinspection PyProtectedMember
         playstore._execute_request("ignore")
Ejemplo n.º 2
0
 def test_request_without_login(self, valid_credentials_path):
     # Simulate a request without the token generated during login.
     playstore = Playstore(valid_credentials_path)
     del playstore.auth_token
     with pytest.raises(SystemExit) as err:
         playstore._execute_request('ignore')
     assert err.value.code == 1