Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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()