Skip to content

Commit

Permalink
Fix test for state (#189)
Browse files Browse the repository at this point in the history
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
  • Loading branch information
rikroe and rikroe committed Jun 22, 2020
1 parent cdfbce9 commit 45503de
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 45503de

Please sign in to comment.