Skip to content

Commit

Permalink
Merge 3a7dde8 into cdfbce9
Browse files Browse the repository at this point in the history
  • Loading branch information
rikroe committed Jun 22, 2020
2 parents cdfbce9 + 3a7dde8 commit 528b632
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ def test_update_data(self):
with mock.patch('bimmer_connected.account.requests', new=backend_mock):
account = ConnectedDriveAccount(TEST_USERNAME, TEST_PASSWORD, TEST_REGION)
vehicle = account.get_vehicle(G31_VIN)
with self.assertRaises(IOError):
vehicle.state.update_data()

vehicle.state.update_data()
self.assertEqual(vehicle.state._attributes, {})

backend_mock.setup_default_vehicles()

Expand Down

0 comments on commit 528b632

Please sign in to comment.