dgelessus
61247ec783
Add initial API and tests for stream-based resource reading
...
For now the stream-based API is a simple BytesIO wrapper around
data/data_raw, but it will be optimized in the future.
2020-07-21 14:12:09 +02:00
dgelessus
246b69e375
Remove accidental empty comment from test_rsrcfork.py
2020-01-21 22:32:44 +01:00
dgelessus
d67ff64851
Add tests for reading from resource forks and fork auto-selection
...
These tests are only run on Mac, because they require native support
for resource forks.
2020-01-21 22:29:18 +01:00
dgelessus
5391d66a78
Add tests for reading resource files from streams instead of path
2020-01-21 15:20:46 +01:00
dgelessus
5b2700bf17
Add some missing asserts to test_compress_compare
2020-01-19 23:24:52 +01:00
dgelessus
c41b25fea1
Add test case for compressed resource handling and decompression
2020-01-19 23:19:19 +01:00
dgelessus
67c2b4acf0
Add test case for additional resource file and resource metadata
2020-01-19 19:22:59 +01:00
dgelessus
238c78a73e
Simplify attribute asserts in tests
2020-01-19 19:05:05 +01:00
dgelessus
fbd861edf4
Fix test_textclipping not checking resource ID lists properly
...
Because Python's zip terminates once *any* of the input iterables
terminates, the previous code would not detect if the file was missing
resources or contained extra ones.
2020-01-19 02:30:10 +01:00
dgelessus
a7a407a1dd
Add extra assertion to test_textclipping
2019-12-30 03:04:48 +01:00
dgelessus
ba284d1800
Fix a bunch of flake8 violations
2019-12-30 03:00:12 +01:00
dgelessus
1089a19c01
Add basic unit tests
2019-12-29 00:39:40 +01:00