test_cli
Tests for gwframe CLI commands.
TestCLIVsAPI ¶
Tests comparing CLI results with direct API calls.
test_drop_cli_matches_api ¶
Test that CLI drop produces same results as API.
Source code in gwframe/tests/test_cli.py
test_rename_cli_matches_api ¶
Test that CLI rename produces same results as API.
Source code in gwframe/tests/test_cli.py
test_resize_cli_matches_api ¶
Test that CLI resize produces same results as API.
Source code in gwframe/tests/test_cli.py
test_select_cli_matches_api ¶
Test that CLI select produces same results as API.
Source code in gwframe/tests/test_cli.py
TestCombineCommand ¶
Tests for gwframe combine command.
test_combine_errors ¶
Test combine error handling.
Source code in gwframe/tests/test_cli.py
test_combine_files_with_filtering ¶
Test combine command with files and channel filtering.
Source code in gwframe/tests/test_cli.py
TestDropCommand ¶
Tests for gwframe drop command.
test_drop_basic ¶
Test basic drop command.
Source code in gwframe/tests/test_cli.py
test_drop_in_place ¶
Test drop with --in-place.
Source code in gwframe/tests/test_cli.py
test_drop_multiple_channels ¶
Test dropping multiple channels.
Source code in gwframe/tests/test_cli.py
TestErrorHandling ¶
Tests for CLI error handling.
test_invalid_mapping_format ¶
Test that invalid mapping format is caught.
Source code in gwframe/tests/test_cli.py
test_missing_output_dir ¶
Test that missing output directory is caught.
Source code in gwframe/tests/test_cli.py
test_no_files_found ¶
Test handling when no files are found.
Source code in gwframe/tests/test_cli.py
TestImputeCommand ¶
Tests for gwframe impute command.
test_impute_basic ¶
Test basic impute command.
Source code in gwframe/tests/test_cli.py
test_impute_in_place ¶
Test impute with --in-place.
Source code in gwframe/tests/test_cli.py
test_impute_specific_value ¶
Test impute replacing specific value.
Source code in gwframe/tests/test_cli.py
TestInspectCommand ¶
Tests for gwframe inspect command.
test_inspect_channel_type_counts ¶
Test inspect summary shows type counts.
Source code in gwframe/tests/test_cli.py
test_inspect_channel_types ¶
Test inspect correctly shows different channel types.
Source code in gwframe/tests/test_cli.py
test_inspect_default ¶
Test inspect with no verbosity (level 0) shows file summary.
Source code in gwframe/tests/test_cli.py
test_inspect_detailed_channel_info ¶
Test inspect -vvv shows correct per-channel details.
Source code in gwframe/tests/test_cli.py
test_inspect_empty_frame ¶
Test inspect on a frame with no channels.
Source code in gwframe/tests/test_cli.py
test_inspect_file_size ¶
Test inspect shows file size.
Source code in gwframe/tests/test_cli.py
test_inspect_gps_range ¶
Test inspect shows correct GPS range.
Source code in gwframe/tests/test_cli.py
test_inspect_invalid_file ¶
Test inspect with invalid (non-GWF) file.
Source code in gwframe/tests/test_cli.py
test_inspect_many_frames_truncation ¶
Test inspect -vv truncates frame table for large files.
Source code in gwframe/tests/test_cli.py
test_inspect_multiframe ¶
Test inspect on multi-frame file.
Source code in gwframe/tests/test_cli.py
test_inspect_multiframe_verbose ¶
Test inspect -vv on multi-frame file shows all frames.
Source code in gwframe/tests/test_cli.py
test_inspect_nonexistent_file ¶
test_inspect_sections_order_verbose_3 ¶
Test that at -vvv, channels section appears before frames section.
Source code in gwframe/tests/test_cli.py
test_inspect_verbose_1 ¶
Test inspect -v shows channel listing.
Source code in gwframe/tests/test_cli.py
test_inspect_verbose_2 ¶
Test inspect -vv shows channels and per-frame table.
Source code in gwframe/tests/test_cli.py
test_inspect_verbose_3 ¶
Test inspect -vvv shows detailed channel info and frame table.
Source code in gwframe/tests/test_cli.py
TestOutputOptionValidation ¶
CLI validation for mutually-exclusive --in-place and --output-dir.
test_rename_rejects_in_place_and_output_dir ¶
Passing both --in-place and --output-dir should exit non-zero.
Source code in gwframe/tests/test_cli.py
TestRecompressCommand ¶
Tests for gwframe recompress command.
test_recompress_basic ¶
Test basic recompress command.
Source code in gwframe/tests/test_cli.py
test_recompress_in_place ¶
Test recompress with --in-place.
Source code in gwframe/tests/test_cli.py
TestRecompressInvalidCompression ¶
cli.py:789-794 — invalid compression string should exit cleanly.
TestRenameCommand ¶
Tests for gwframe rename command.
test_rename_basic ¶
Test basic rename command.
Source code in gwframe/tests/test_cli.py
test_rename_in_place ¶
Test rename with --in-place.
Source code in gwframe/tests/test_cli.py
test_rename_mutual_exclusivity ¶
Test that --in-place and -o are mutually exclusive.
Source code in gwframe/tests/test_cli.py
test_rename_single_file_output ¶
Test rename with single file output.
Source code in gwframe/tests/test_cli.py
TestReplaceCommand ¶
Tests for gwframe replace command.
test_replace_basic ¶
Replace a channel's data from an update file.
Source code in gwframe/tests/test_cli.py
test_replace_empty_base_directory ¶
An empty base directory should exit 1 with 'No base files found'.
Source code in gwframe/tests/test_cli.py
test_replace_empty_update_directory ¶
An empty update directory should exit 1 with 'No update files found'.
Source code in gwframe/tests/test_cli.py
TestResizeCommand ¶
Tests for gwframe resize command.
test_resize_basic ¶
Test basic resize command.
Source code in gwframe/tests/test_cli.py
test_resize_in_place ¶
Test resize with --in-place.
Source code in gwframe/tests/test_cli.py
TestSelectCommand ¶
Tests for gwframe select command.
test_select_basic ¶
Test basic select command.
Source code in gwframe/tests/test_cli.py
test_select_in_place ¶
Test select with --in-place.
Source code in gwframe/tests/test_cli.py
test_select_multiple_channels ¶
Test selecting multiple channels.
Source code in gwframe/tests/test_cli.py
test_select_mutual_exclusivity ¶
Test that --in-place and -o are mutually exclusive.
Source code in gwframe/tests/test_cli.py
test_select_recursive ¶
Test select with --recursive flag.
Source code in gwframe/tests/test_cli.py
test_select_single_file_output ¶
Test select with single file output.