test_write
Comprehensive tests for gwframe write functionality.
TestCompression ¶
Tests for compression modes and settings.
test_compression_level ¶
Test compression with different compression levels.
Source code in gwframe/tests/test_write.py
test_compression_modes_exposed ¶
Test that all compression modes are exposed.
Source code in gwframe/tests/test_write.py
test_write_with_different_compressions ¶
Test writing with different compression modes.
Source code in gwframe/tests/test_write.py
TestFrameMetadata ¶
Tests for frame metadata (detector, run, etc.).
test_frame_with_full_metadata ¶
Test creating frame with all metadata fields.
Source code in gwframe/tests/test_write.py
test_frame_without_detector ¶
Test creating frame without detector name.
Source code in gwframe/tests/test_write.py
TestFrameNumber ¶
Tests for frame number tracking and auto-increment.
test_default_frame_number ¶
test_explicit_frame_number ¶
Test creating frame with explicit frame_number.
test_framewriter_auto_increment ¶
Test FrameWriter auto-increments frame numbers.
Source code in gwframe/tests/test_write.py
test_manual_frame_objects_with_framewriter ¶
Test writing manual Frame objects with specific frame numbers.
Source code in gwframe/tests/test_write.py
TestFrameWriter ¶
Tests for FrameWriter context manager.
test_framewriter_multiple_channels ¶
Test writing multiple channels per frame.
Source code in gwframe/tests/test_write.py
test_framewriter_with_compression ¶
Test FrameWriter with compression.
Source code in gwframe/tests/test_write.py
test_write_multiple_frames ¶
Test writing multiple frames to a single file.
Source code in gwframe/tests/test_write.py
TestSimpleWrite ¶
Tests for simple write operations using gwframe.write().
test_write_basic ¶
Test basic write and read-back.
Source code in gwframe/tests/test_write.py
test_write_with_compression ¶
Test writing with GZIP compression.
Source code in gwframe/tests/test_write.py
TestWriteBytes ¶
Tests for write_bytes functionality.
test_frame_write_bytes_roundtrip ¶
Test Frame.write_bytes() method.
Source code in gwframe/tests/test_write.py
test_frame_writer_bytesio ¶
Test FrameWriter with BytesIO destination.
Source code in gwframe/tests/test_write.py
test_frame_writer_bytesio_equals_file ¶
Test that FrameWriter produces identical output for file and BytesIO.
Source code in gwframe/tests/test_write.py
test_write_bytes_basic_roundtrip ¶
Test basic round-trip: write_bytes -> read_bytes.
Source code in gwframe/tests/test_write.py
test_write_bytes_equals_write_file ¶
Test that write_bytes produces identical output to write.
Source code in gwframe/tests/test_write.py
test_write_bytes_multiple_channels ¶
Test write_bytes with multiple channels.
Source code in gwframe/tests/test_write.py
test_write_bytes_with_compression ¶
Test write_bytes with different compression schemes.
Source code in gwframe/tests/test_write.py
test_add_channel_wrong_dimensions ¶
Test that adding non-1D data raises error.
Source code in gwframe/tests/test_write.py
test_framewriter_error_when_not_opened ¶
Test that FrameWriter raises error if used outside context manager.
Source code in gwframe/tests/test_write.py
test_framewriter_write_single_array_without_name ¶
Test FrameWriter.write() with single array but no name raises error.
Source code in gwframe/tests/test_write.py
test_unsupported_channel_type ¶
Test that unsupported channel_type raises error.
Source code in gwframe/tests/test_write.py
test_write_frame_without_context ¶
Test write_frame raises error outside context manager.
Source code in gwframe/tests/test_write.py
test_write_single_array_without_name_raises_error ¶
Test that writing single array without name parameter raises error.