9 Commits
Author SHA1 Message Date
mvdbeek 255c9eae4f Merge branch 'release_26.1' into release_26.2 2026-11-14 06:07:51 +01:00
John ChiltonandClaude Opus 5.5 e8c3915dd1 Fold checksum message test into parametrized cases
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:08:52 +01:00
John ChiltonandClaude Opus 5.5 32f07badc3 Decompress output once for assertions and checksum, with labeled error
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:07:10 +01:00
John ChiltonandClaude Opus 5.5 3411b0b905 Move test imports to module top
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:06:28 +01:00
Arash 15b1e13ac1 Address review: helper in compression_utils, clear errors, docs, more tests
- move decompress_bytes to galaxy.util.compression_utils
- a corrupt compressed output is an AssertionError naming the output, not a raw exception
- a checksum mismatch says the checksum was taken over the decompressed content
- document in galaxy.xsd and the test models that decompress applies to md5/checksum,
  and regenerate the client API schema and the editor tool-source schema
- test the legacy md5 attribute, the message and the corrupt-input case
2026-11-12 15:24:53 +01:00
Arash 701d010027 Honor decompress: true for checksum assertions in tool and workflow tests
verify() decompressed the output for assertions and file comparisons but
compared checksums against the raw (compressed) bytes, so a checksum of the
decompressed content could never match.
2026-11-12 15:03:56 +01:00
John ChiltonandClaude Opus 5 c1dcce8143 Read the assertion column separator from dataset metadata
Tabular datatypes already record their column separator as ``delimiter``
metadata, so column assertions can split on what the datatype actually
found instead of inferring it from the ftype declared in the test. The
delimiter is a parsing parameter here, not an oracle - assertions still
test file contents, never metadata.

Gate on profile 26.2 (dev is 26.2.dev0; the original 26.0 has passed) and
keep an explicitly declared ``sep`` winning over it. ``delimiter`` is an
optional metadata element with ``no_value=[]``, so a non-string value
falls back to the historical tab, as do callers with no dataset metadata
to consult.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-18 12:24:59 -04:00
Danielle CallanandClaude Opus 5 9a50e4c2d5 Fix counterintuitive behavior of has_n_cols for csv
Thread the tool profile into verify() and default the has_n_columns
separator to comma when the output ftype is csv.

Squashed from PR #21391 and rebased onto dev; conflicts from the
PEP 604 annotation migration resolved.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-18 12:04:18 -04:00
John Chilton 19aba1807e Initial unit test for copying test data. 2022-09-23 09:11:40 -04:00