Loading of compressed fixtures
|Reported by:||Owned by:||Jeremy Dunck|
|Severity:||Keywords:||compression, fixtures, feature|
|Cc:||semente@…||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Fixtures contain a lot of redundancy (in xml or json format), so they compress well. This patch adds detection and loading of bzip2 or gzip compressed fixtures, since these formats are supported natively in Python. It also contains some test cases.
An example of the utility of this patch: in my project, an initial_data.json fixture was around 4Mb and bzip2'ed down to ~150Kb, a much more reasonable size for storing in a repository. I'm sure there are plenty of projects where this is useful.
The tests pass, except for one which fails in the same way the existing fixture test fails.
Change History (19)
comment:11 Changed 9 years ago by
|Patch needs improvement:||set|
comment:12 Changed 8 years ago by
|Owner:||changed from nobody to Jeremy Dunck|
|Patch needs improvement:||unset|
|Status:||new → assigned|