test_HRMonitor module¶
-
test_HRMonitor.
get_test_file
(index)¶ Provides path to files such as test_data2.csv or test_data6.csv
Parameters: index – number of the file to retrieve Returns: path for file of the format test_data<number>.csv
-
test_HRMonitor.
test_basic_files
()¶ Test to see if all basic files in test_data/ can be processed (tests 1-27)
-
test_HRMonitor.
test_broken_files
(caplog)¶ Tests files with possible issues
-
test_HRMonitor.
test_duration
()¶ Checks if duration is calculated correctly
-
test_HRMonitor.
test_file_not_found
()¶ Test for checking how the class handles files that do not exist
-
test_HRMonitor.
test_filetype
()¶ Test for checking if the class correctly identifies unsupported file types
-
test_HRMonitor.
test_fixable_files
(caplog)¶ Test to see if all files with invalid inputs (tests 28-31) are handled correctly (invalid values detected and interpolated, without throwing exceptions)
-
test_HRMonitor.
test_init
()¶ Basic test to see if calling the constructor works
-
test_HRMonitor.
test_json
()¶ Checks if json file is created and has correct values
-
test_HRMonitor.
test_outside_range
(caplog)¶ Test if files with inputs outside the normal range are noted in the logs (test_data32.csv)
-
test_HRMonitor.
test_plotting
()¶ Tests plotting functionality of HRMonitor
-
test_HRMonitor.
test_voltage_extremes
()¶ Checks if voltage extremes are correctly calculated