Skip to content

Commit

Permalink
Updating test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Apr 22, 2022
1 parent c5ea384 commit ca65442
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions tests/pytests/managers/test_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def test_create_entity(
self.assertEqual("17c59dfa-2edd-438e-8c49-faa4e38e5a5e", device_entity.connector.id.__str__())
self.assertEqual("device-identifier", device_entity.identifier)
self.assertEqual("New device name", device_entity.name)
self.assertTrue(device_entity.enabled)
self.assertIsNotNone(device_entity.created_at)

entity = device_repository.get_by_id(
Expand All @@ -91,7 +90,6 @@ def test_update_entity(
data={
"identifier": "device-identifier",
"name": "Edited name",
"enabled": False,
"id": uuid.UUID("26d7a945-ba29-471e-9e3c-304ef0acb199", version=4),
},
)
Expand All @@ -103,7 +101,6 @@ def test_update_entity(
self.assertEqual("17c59dfa-2edd-438e-8c49-faa4e38e5a5e", device_entity.connector.id.__str__())
self.assertEqual("first-device", device_entity.identifier)
self.assertEqual("Edited name", device_entity.name)
self.assertFalse(device_entity.enabled)
self.assertIsNotNone(device_entity.created_at)

entity = device_repository.get_by_id(
Expand Down
1 change: 0 additions & 1 deletion tests/pytests/repositories/test_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def test_transform_to_dict(self, device_repository: DevicesRepository) -> None:
"identifier": "first-device",
"name": "First device",
"comment": None,
"enabled": True,
"hardware_manufacturer": "itead",
"hardware_model": "sonoff_basic",
"hardware_version": "rev1",
Expand Down

0 comments on commit ca65442

Please sign in to comment.