tests package

Submodules

tests.debug module

tests.test_atprogram module

This module holds the automated tests for atprogram.

tests.test_atprogram.test_atprogram(verbose, clean, build, erase, program, verify, return_output, dry_run)[source]

test_atprogram.

tests.test_atprogram.test_atprogram_command(make_command, atprogram_command)[source]

test_atprogram_command.

tests.test_atprogram.test_atprogram_invalid_command()[source]

test_atprogram_not_a_command.

tests.test_atprogram.test_atprogram_simple()[source]

test_atprogram_simple.

tests.test_atprogram.test_get_device_info()[source]

test_get_device_info.

tests.test_atprogram.test_get_project_size()[source]

test_get_project_size.

tests.test_benchmarks module

This module holds the benchmark tests for DGILibExtra.

tests.test_benchmarks.data_iadd_speed(num_iterations=10, num_values=1000)[source]

test_data_iadd_speed.

tests.test_benchmarks.data_no_class_speed(num_iterations=10, num_values=1000)[source]

data_no_class_speed.

tests.test_benchmarks.test_data_iadd_speed(benchmark)[source]

Benchmark iadd speed.

tests.test_benchmarks.test_data_no_class_speed(benchmark)[source]

Benchmark no_class speed.

tests.test_dgilib_auxiliary module

This module holds the automated tests for DGILib Auxiliary.

tests.test_dgilib_auxiliary.test_auxiliary_power_calibration_is_valid(verbose)[source]

test_auxiliary_power_calibration_is_valid.

DGILibAuxiliary.auxiliary_power_calibration_is_valid

tests.test_dgilib_auxiliary.test_auxiliary_power_get_calibration(verbose)[source]

test_auxiliary_power_get_calibration.

DGILibAuxiliary.auxiliary_power_get_calibration

tests.test_dgilib_auxiliary.test_auxiliary_power_get_circuit_type(verbose)[source]

test_auxiliary_power_get_circuit_type.

DGILibAuxiliary.auxiliary_power_get_circuit_type

tests.test_dgilib_auxiliary.test_auxiliary_power_get_status(verbose)[source]

test_auxiliary_power_get_status.

DGILibAuxiliary.auxiliary_power_get_status

tests.test_dgilib_auxiliary.test_auxiliary_power_initialize(verbose)[source]

test_auxiliary_power_initialize.

DGILibAuxiliary.auxiliary_power_initialize

tests.test_dgilib_auxiliary.test_auxiliary_power_lock_data_for_reading_copy_data_free_data(channel, power_type, verbose)[source]

test_auxiliary_power_lock_data_for_reading_copy_data_free_data.

DGILibAuxiliary.auxiliary_power_lock_data_for_reading DGILibAuxiliary.auxiliary_power_copy_data DGILibAuxiliary.auxiliary_power_free_data

tests.test_dgilib_auxiliary.test_auxiliary_power_register_unregister_buffer_pointers(channel, power_type, verbose)[source]

test_auxiliary_power_register_unregister_buffer_pointers.

DGILibAuxiliary.auxiliary_power_register_buffer_pointers DGILibAuxiliary.auxiliary_power_unregister_buffer_pointers

tests.test_dgilib_auxiliary.test_auxiliary_power_start_stop(channel, power_type, mode, parameter, verbose)[source]

test_auxiliary_power_start_stop.

DGILibAuxiliary.auxiliary_power_start DGILibAuxiliary.auxiliary_power_stop

tests.test_dgilib_auxiliary.test_auxiliary_power_trigger_calibration(verbose)[source]

test_auxiliary_power_trigger_calibration.

DGILibAuxiliary.auxiliary_power_trigger_calibration

tests.test_dgilib_auxiliary.test_auxiliary_power_uninitialize(verbose)[source]

test_auxiliary_power_uninitialize.

DGILibAuxiliary.auxiliary_power_uninitialize

tests.test_dgilib_discovery module

This module holds the automated tests for DGILib Discovery.

tests.test_dgilib_discovery.test_discover(verbose)[source]

test_discover.

DGILibDiscovery.discover

tests.test_dgilib_discovery.test_get_device_count(verbose)[source]

test_get_device_count.

DGILibDiscovery.get_device_count

tests.test_dgilib_discovery.test_get_device_name(verbose)[source]

test_get_device_name.

DGILibDiscovery.get_device_name

tests.test_dgilib_discovery.test_get_device_serial(verbose)[source]

test_get_device_serial.

DGILibDiscovery.get_device_serial

tests.test_dgilib_discovery.test_is_msd_mode(verbose)[source]

test_is_msd_mode.

DGILibDiscovery.is_msd_mode

tests.test_dgilib_discovery.test_set_mode(verbose)[source]

test_set_mode.

DGILibDiscovery.set_mode

tests.test_dgilib_extra module

This module holds the automated tests for DGILibExtra.

tests.test_dgilib_extra.test_device_reset(verbose)[source]

test_device_reset.

tests.test_dgilib_extra.test_info(verbose)[source]

test_info.

tests.test_dgilib_extra.test_int2bool2int(i)[source]

test_int2bool2int.

tests.test_dgilib_extra.test_plot(config, verbose)[source]

test_plot.

tests.test_dgilib_extra.test_plot_simple(verbose)[source]

test_plot_simple.

tests.test_dgilib_housekeeping module

This module holds the automated tests for DGILib Housekeeping.

tests.test_dgilib_housekeeping.test_connect(verbose)[source]

test_connect.

DGILibHousekeeping.connect

tests.test_dgilib_housekeeping.test_connection_status(verbose)[source]

test_connection_status.

DGILibHousekeeping.connection_status

tests.test_dgilib_housekeeping.test_disconnect(verbose)[source]

test_disconnect.

DGILibHousekeeping.disconnect

tests.test_dgilib_housekeeping.test_get_build_number(verbose)[source]

test_get_build_number.

DGILibHousekeeping.get_build_number

tests.test_dgilib_housekeeping.test_get_fw_version(verbose)[source]

test_get_fw_version.

DGILibHousekeeping.get_fw_version

tests.test_dgilib_housekeeping.test_get_major_version(verbose)[source]

test_get_major_version.

DGILibHousekeeping.get_major_version

tests.test_dgilib_housekeeping.test_get_minor_version(verbose)[source]

test_get_minor_version.

DGILibHousekeeping.get_minor_version

tests.test_dgilib_housekeeping.test_start_polling(verbose)[source]

test_start_polling.

DGILibHousekeeping.start_polling

tests.test_dgilib_housekeeping.test_stop_polling(verbose)[source]

test_stop_polling.

DGILibHousekeeping.stop_polling

tests.test_dgilib_housekeeping.test_target_reset(verbose)[source]

test_target_reset.

DGILibHousekeeping.target_reset

tests.test_dgilib_interface_communication module

This module holds the automated tests for DGILib Interface Communication.

tests.test_dgilib_interface_communication.test_interface_clear_buffer(verbose)[source]

test_interface_clear_buffer.

DGILibInterfaceCommunication.interface_clear_buffer

tests.test_dgilib_interface_communication.test_interface_disable(verbose)[source]

test_interface_disable.

DGILibInterfaceCommunication.interface_disable

tests.test_dgilib_interface_communication.test_interface_enable(verbose)[source]

test_interface_enable.

DGILibInterfaceCommunication.interface_enable

tests.test_dgilib_interface_communication.test_interface_get_configuration(verbose)[source]

test_interface_get_configuration.

DGILibInterfaceCommunication.interface_get_configuration

tests.test_dgilib_interface_communication.test_interface_list(verbose)[source]

test_interface_list.

DGILibInterfaceCommunication.interface_list

tests.test_dgilib_interface_communication.test_interface_read_data(verbose)[source]

test_interface_read_data.

DGILibInterfaceCommunication.interface_read_data

tests.test_dgilib_interface_communication.test_interface_set_configuration(verbose)[source]

test_interface_set_configuration.

DGILibInterfaceCommunication.interface_set_configuration

Gets the configuration and sets it to the same values.

tests.test_dgilib_interface_communication.test_interface_write_data(verbose)[source]

test_interface_write_data.

DGILibInterfaceCommunication.interface_write_data

tests.test_interface_data module

This module holds the automated tests for InterfaceData.

tests.test_interface_data.test__add__()[source]

Tests for __add__ function.

tests.test_interface_data.test__contains__()[source]

Tests for __contains__ function.

tests.test_interface_data.test__getattr__()[source]

Tests for timestamps and values functionality.

tests.test_interface_data.test__getitem__()[source]

Tests for __getitem__ function.

tests.test_interface_data.test__iadd__()[source]

Tests for __iadd__ function.

tests.test_interface_data.test__len__()[source]

Tests for __len__ function.

tests.test_interface_data.test__setattr__()[source]

Tests for timestamps and values functionality.

tests.test_interface_data.test_extend()[source]

Tests for extend function.

tests.test_interface_data.test_new_interface_data()[source]

Test instantiations.

tests.test_interface_data.test_valid_interface_data()[source]

Tests for valid_interface_data function.

tests.test_logger_data module

This module holds the automated tests for LoggerData.

tests.test_logger_data.test__add__()[source]

Tests for __add__ function.

tests.test_logger_data.test__getattr__()[source]

Tests for __getattr__ function.

tests.test_logger_data.test__iadd__()[source]

Tests for __iadd__ function.

tests.test_logger_data.test__setattr__()[source]

Tests for __setattr__ function.

tests.test_logger_data.test_extend()[source]

Tests for extend function.

tests.test_logger_data.test_init_logger_data()[source]

Test instantiations.

tests.test_logger_data.test_length()[source]

Tests for length function.

tests.test_pydgilib module

This module holds the automated tests for DGILib.

tests.test_pydgilib.test_logger_log()[source]

test_logger_log.

Module contents

This module provides Python tests for DGILib.