Coverage for tests\test_dgilib_extra.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""This module holds the automated tests for DGILibExtra."""
NUM_PINS, LOGGER_CSV, LOGGER_PLOT, LOGGER_OBJECT, INTERFACE_POWER) power_and_time_per_pulse, rise_and_fall_times, calculate_average)
"loggers": [LOGGER_OBJECT, LOGGER_CSV], }
# This dict contains many default values, they test the argument handling. "interfaces": [INTERFACE_POWER, INTERFACE_GPIO], "power_buffers": [{"channel": CHANNEL_A, "power_type": POWER_CURRENT}], "read_mode": [False, True, True, True], "write_mode": [True, False, False, False], "loggers": [LOGGER_OBJECT, LOGGER_PLOT, LOGGER_CSV], "plot_pins": [True, True, True, True], "gpio_delay_time": 0.0007, "plot_pins_method": "line", "plot_xmax": 1, "window_title": "UnitTest", "file_name_base": "unit_test" }
def test_int2bool2int(i): """test_int2bool2int."""
def test_info(verbose): """test_info."""
def test_device_reset(verbose): """test_device_reset."""
def test_plot_simple(verbose): """test_plot_simple."""
(config_dict, config_dict_plot, {}, {"loggers": [LOGGER_PLOT]})) def test_plot(config, verbose): """test_plot."""
pin_value or not read_mode for pin_value, read_mode in zip( logger_data.gpio.values[-1], pin_mask))
pin_values, pin_mask))
# Get data from object # Get data from csv files path.join(dgilib.logger.log_folder, (interface.file_name_base + '_' + interface.name + ".csv")))
logger_data, 1, stop_function=analysis_stop_function)
logger_data, 1, stop_function=analysis_stop_function)
(end-start for start, end in zip(*rise_and_fall))))
|