test_same_account_refresh_keeps_desktop_token_session_device_and_tenant (test_zyt_session_recovery.DesktopZytSessionRecoveryTest.test_same_account_refresh_keeps_desktop_token_session_device_and_tenant) ... FAIL test_missing_upstream_session_is_recoverable (test_zyt_session_recovery.DesktopZytSessionRecoveryTest.test_missing_upstream_session_is_recoverable) ... ERROR ====================================================================== ERROR: test_missing_upstream_session_is_recoverable (test_zyt_session_recovery.DesktopZytSessionRecoveryTest.test_missing_upstream_session_is_recoverable) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\kefu\wechat_rpa\test_zyt_session_recovery.py", line 187, in test_missing_upstream_session_is_recoverable self.assertEqual(response.json()['detail']['code'], 'zyt_session_expired') ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ TypeError: string indices must be integers, not 'str' ====================================================================== FAIL: test_same_account_refresh_keeps_desktop_token_session_device_and_tenant (test_zyt_session_recovery.DesktopZytSessionRecoveryTest.test_same_account_refresh_keeps_desktop_token_session_device_and_tenant) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\kefu\wechat_rpa\test_zyt_session_recovery.py", line 105, in test_same_account_refresh_keeps_desktop_token_session_device_and_tenant self.assertEqual(response.status_code, 200, response.text) AssertionError: 405 != 200 : {"detail":"Method Not Allowed"} ---------------------------------------------------------------------- Ran 2 tests in 2.053s FAILED (failures=1, errors=1)