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.
invalid_adc_file ¶
Single frame: one invalid ADC, one valid ADC, one proc channel.
Source code in gwframe/tests/test_cli.py
multi_frame_invalid_file ¶
3 frames; L1:BAD_ADC invalid in frames 0 and 2, valid in frame 1.
Source code in gwframe/tests/test_cli.py
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_sections_order_verbose_5 ¶
Sections at -vvvvv: Channels < Frames < Invalid channels < Preview.
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
test_inspect_verbose_3_valid_column ¶
-vvv shows a Valid column marking invalid ADC channels.
Source code in gwframe/tests/test_cli.py
test_inspect_verbose_3_valid_column_all_frames ¶
-vvv Valid column reflects all frames, not just frame 0.
Source code in gwframe/tests/test_cli.py
test_inspect_verbose_4_all_valid ¶
-vvvv reports when all ADC channels are valid.
Source code in gwframe/tests/test_cli.py
test_inspect_verbose_4_invalid_section ¶
-vvvv adds the invalid-channel report.
Source code in gwframe/tests/test_cli.py
test_inspect_verbose_4_multiframe ¶
-vvvv lists the frames each invalid channel is flagged in.
Source code in gwframe/tests/test_cli.py
test_inspect_verbose_4_no_adc ¶
-vvvv on a proc-only file explains dataValid is ADC-only.
Source code in gwframe/tests/test_cli.py
test_inspect_verbose_5_empty_frame ¶
-vvvvv on a channel-less frame.
Source code in gwframe/tests/test_cli.py
test_inspect_verbose_5_preview ¶
-vvvvv adds a per-frame data preview.
Source code in gwframe/tests/test_cli.py
test_inspect_verbose_5_truncation ¶
-vvvvv truncates the preview to first/last 5 frames.
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.
Source code in gwframe/tests/test_cli.py
TestTransformCommand ¶
Tests for gwframe transform command (chained stages).
raw_dir ¶
Three conventionally named files, two contiguous 1 s frames each.
Source code in gwframe/tests/test_cli.py
test_chain ¶
Stages apply in order, each with its own options.
Source code in gwframe/tests/test_cli.py
test_dry_run ¶
--dry-run prints the plan and warnings and writes nothing.
Source code in gwframe/tests/test_cli.py
test_file_duration_and_prefix ¶
--file-duration re-chunks the stream; --prefix names the files.
Source code in gwframe/tests/test_cli.py
test_file_duration_default_prefix ¶
The prefix defaults to that of the first input file.
Source code in gwframe/tests/test_cli.py
test_fill_gaps ¶
fill-gaps bridges a gap so re-chunked output stays contiguous.
Source code in gwframe/tests/test_cli.py
test_matches_standalone_commands ¶
One transform pass equals the standalone commands chained via dirs.
Source code in gwframe/tests/test_cli.py
test_no_stages_rewrites ¶
Without stages the files are rewritten (recompressed).
Source code in gwframe/tests/test_cli.py
test_options_after_inputs ¶
Group options may follow the input paths.
Source code in gwframe/tests/test_cli.py
test_preflight_error ¶
A chain that leaves no channels is rejected before any write.
Source code in gwframe/tests/test_cli.py
test_recipe_file ¶
@FILE splices a recipe of stages into the command line.
Source code in gwframe/tests/test_cli.py
test_stage_option_before_stage_hint ¶
An option given before its stage name gets a pointer to the stages.
Source code in gwframe/tests/test_cli.py
TestValidateCommand ¶
Tests for gwframe validate command.
differing_file ¶
A copy of single_frame_file with one channel's data perturbed.
Source code in gwframe/tests/test_cli.py
test_common_shorthand ¶
--common behaves like --common-channels --common-time-spans.