test_read
Comprehensive tests for gwframe read functionality.
TestChecksumValidation ¶
Tests for checksum validation.
test_read_bytes_with_validation ¶
Test read_bytes() with validation.
Source code in gwframe/tests/test_read.py
test_read_file_object_with_validation ¶
Test reading from file object with validation.
Source code in gwframe/tests/test_read.py
test_read_with_validation_enabled ¶
Test reading with validation enabled.
test_read_without_validation_default ¶
Test reading without validation (default).
TestFrameIndex ¶
Tests for frame index parameter.
test_read_invalid_frame_index ¶
Test reading invalid frame index raises error.
Source code in gwframe/tests/test_read.py
test_read_specific_frame_index ¶
Test reading specific frame by index.
Source code in gwframe/tests/test_read.py
TestNumpyIntegration ¶
Tests for numpy array handling.
test_array_dtype ¶
Test array dtype is correct.
test_array_is_numpy_array ¶
Test that returned data is numpy array.
test_timeseries_metadata ¶
Test TimeSeries metadata fields.
Source code in gwframe/tests/test_read.py
TestReadMultiChannel ¶
Tests for reading multiple channels.
test_read_all_channels ¶
Test reading all channels with channel=None.
Source code in gwframe/tests/test_read.py
test_read_all_channels_from_bytes ¶
Test reading all channels from bytes.
Source code in gwframe/tests/test_read.py
test_read_channel_list ¶
Test reading specific list of channels.
Source code in gwframe/tests/test_read.py
test_read_channel_list_from_file_object ¶
Test reading channel list from file object.
Source code in gwframe/tests/test_read.py
TestReadSingleChannel ¶
Tests for reading single channels.
test_read_bytes_function ¶
Test read_bytes() function.
Source code in gwframe/tests/test_read.py
test_read_from_bytesio ¶
Test reading single channel from BytesIO.
Source code in gwframe/tests/test_read.py
test_read_from_file_object ¶
Test reading single channel from file object.
Source code in gwframe/tests/test_read.py
test_read_from_file_path ¶
Test reading single channel from file path.
Source code in gwframe/tests/test_read.py
test_read_nonexistent_channel ¶
Test reading non-existent channel raises ChannelNotFoundError.
Source code in gwframe/tests/test_read.py
test_read_nonexistent_file ¶
test_invalid_time_range_error ¶
Test InvalidTimeRangeError is raised for out-of-range time requests.
Source code in gwframe/tests/test_read.py
test_read_bytes_start_end_mutually_exclusive_with_frame_index ¶
Test that start/end cannot be used with frame_index in read_bytes.
Source code in gwframe/tests/test_read.py
test_read_bytes_start_end_validation ¶
Test validation of start/end parameter combinations in read_bytes.
Source code in gwframe/tests/test_read.py
test_read_bytes_type_validation ¶
Test that read_bytes validates input is bytes.