ARver/tests/data/responses/dBAR-001-000441fd-000883fb-020e8801.bin
arcctgx 540df0deb0 add parser tests using real database responses
For each test add a pair of files: dBAR file with a raw AccurateRip
binary response, and a JSON file containing an expected outcome of
processing this response using AccurateRipDisc.make_dict() method. In
each test the raw binary response is first parsed by _parse_raw_bytes()
method of Fetcher, and then converted to a dictionary and compared with
the expected result read from a JSON file.

JSON file corresponding to the one track response was created manually.
The remaining JSON files were created by dumping make_dict() results.
The purpose of adding these test cases is to guard against introducing
accidental regressions. The correctness of the parser code has already
been verified by extensive manual testing with physical media, so using
existing code for generating expected results is acceptable.
2024-06-23 23:53:06 +02:00

44 B