@@ -160,7 +160,7 @@ def test_oauth_store_credentials(cli_home_dir: Path, bmw_fixture: respx.Router):
160160 assert set (oauth_storage .keys ()) == {"access_token" , "refresh_token" , "gcid" , "session_id" , "session_id_timestamp" }
161161
162162
163- @time_machine .travel ("2021-11-28 21:28:59 +0000 " )
163+ @time_machine .travel ("2021-11-28 21:28:59+00:00 " )
164164@pytest .mark .usefixtures ("cli_home_dir" )
165165def test_oauth_load_credentials (cli_home_dir : Path , bmw_fixture : respx .Router ):
166166 """Test loading and storing the oauth credentials."""
@@ -196,7 +196,7 @@ def test_oauth_load_credentials(cli_home_dir: Path, bmw_fixture: respx.Router):
196196 assert oauth_storage ["session_id" ] == demo_oauth_data ["session_id" ]
197197
198198
199- @time_machine .travel ("2021-11-28 21:28:59 +0000 " )
199+ @time_machine .travel ("2021-11-28 21:28:59+00:00 " )
200200@pytest .mark .usefixtures ("cli_home_dir" )
201201def test_oauth_load_credentials_old_session_id (cli_home_dir : Path , bmw_fixture : respx .Router ):
202202 """Test loading and storing the oauth credentials and getting a new session_id."""
@@ -206,7 +206,7 @@ def test_oauth_load_credentials_old_session_id(cli_home_dir: Path, bmw_fixture:
206206 "refresh_token" : "demo_refresh_token" ,
207207 "gcid" : "demo_gcid" ,
208208 "session_id" : "demo_session_id" ,
209- "session_id_timestamp" : 1636838939 , # 2021-11-13 21:28:59 +0000
209+ "session_id_timestamp" : 1636838939 , # 2021-11-13 21:28:59+00:00
210210 }
211211
212212 (cli_home_dir / ".bimmer_connected.json" ).write_text (json .dumps (demo_oauth_data ))
@@ -228,7 +228,7 @@ def test_oauth_load_credentials_old_session_id(cli_home_dir: Path, bmw_fixture:
228228 assert oauth_storage ["session_id_timestamp" ] == pytest .approx (time .time (), abs = 5 )
229229
230230
231- @time_machine .travel ("2021-11-28 21:28:59 +0000 " )
231+ @time_machine .travel ("2021-11-28 21:28:59+00:00 " )
232232@pytest .mark .usefixtures ("cli_home_dir" )
233233def test_oauth_store_credentials_on_error (cli_home_dir : Path , bmw_fixture : respx .Router ):
234234 """Test loading and storing the oauth credentials, even if a call errors out."""
0 commit comments