Ejemplo n.º 1
0
def test_retrieve_apps():
    """Checks if the function is not implemented"""
    datastore_interface = base_datastore_interface.DatastoreInterface()
    api_key = "23"
    device_name = "Pixel"
    with pytest.raises(NotImplementedError):
        datastore_interface.retrieve_apps(api_key, device_name)
Ejemplo n.º 2
0
def test_add_device_app():
    """Checks if the function is not implemented"""
    datastore_interface = base_datastore_interface.DatastoreInterface()
    api_key = "23"
    device_name = "Pixel"
    app_name = "Hangouts"
    with pytest.raises(NotImplementedError):
        datastore_interface.add_device_app(api_key, device_name, app_name)
Ejemplo n.º 3
0
def test_get_raw_device_name_from_alias():
    """Checks if the function is not implemented"""
    datastore_interface = base_datastore_interface.DatastoreInterface()
    api_key = "23"
    device_alias = "Pixel"
    with pytest.raises(NotImplementedError):
        datastore_interface.get_raw_device_name_from_alias(
            api_key, device_alias)
Ejemplo n.º 4
0
def test_update_alias_device():
    """Checks if the function is not implemented"""
    datastore_interface = base_datastore_interface.DatastoreInterface()
    api_key = "23"
    device_raw_name = "Pixel"
    device_alias = "Pixel2"
    with pytest.raises(NotImplementedError):
        datastore_interface.update_alias_device(api_key, device_raw_name,
                                                device_alias)
Ejemplo n.º 5
0
def test_retrieve_logs():
    """Checks if the function is not implemented"""
    datastore_interface = base_datastore_interface.DatastoreInterface()
    api_key = "23"
    device_name = "Pixel"
    app_name = "Hangouts"
    start_time = str(datetime.datetime.now())
    with pytest.raises(NotImplementedError):
        datastore_interface.retrieve_logs(api_key, device_name, app_name,
                                          start_time)
Ejemplo n.º 6
0
def test_clear_datastore():
    """Checks if the function is not implemented"""
    datastore_interface = base_datastore_interface.DatastoreInterface()
    with pytest.raises(NotImplementedError):
        datastore_interface.clear_datastore()