ARver/tests
arcctgx 81bb943b2c wrap calculated checksums in a dataclass
Using a tuple of four checksums is inconvenient, so create a dedicated
Checksums type and return a Checksums object from get_checksums(). This
allows reducing the number of local variables in Rip.verify(), and
fixes a warning raised by Pylint.

Referencing the checksums as a dataclass attribute instead of directly
referencing them as local variables makes some lines longer and results
in awkward line breaks by YAPF, but this code will have to be refactored
and reformatted anyway.

Adapt unit tests.
2025-11-11 17:44:41 +01:00
..
data test loading samples from a corrupted audio file 2024-07-14 22:51:59 +02:00
_audio_test.py rename nframes() and get_nframes() 2025-02-10 21:53:13 +01:00
checksums_test.py wrap calculated checksums in a dataclass 2025-11-11 17:44:41 +01:00
database_test.py add parser tests using real database responses 2024-06-23 23:53:06 +02:00
discinfo_test.py implement DiscInfo.from_track_lengths() 2024-07-07 20:10:26 +02:00
helpers_test.py fix length calculation of non-CDDA input files 2025-06-11 00:08:19 +02:00
properties_test.py rename one test 2025-06-02 20:57:12 +02:00