예제 #1
0
async def test_get_events_not_event_with_type(protect_client: ProtectApiClient,
                                              camera):
    camera["type"] = EventType.MOTION.value

    protect_client.get_events_raw = AsyncMock(return_value=[camera
                                                            ])  # type: ignore

    assert await protect_client.get_events() == []
예제 #2
0
async def test_get_events_not_event(protect_client: ProtectApiClient, camera):
    protect_client.get_events_raw = AsyncMock(return_value=[camera])  # type: ignore

    assert await protect_client.get_events() == []