(Re-)add tests for the loader.
When doing !11 (closed), I misunderstood how batching in the loader worked, so I ended up making these tests useless.
This makes them do their job again, and tests more cases, such as the threshold being reached.
It also makes the cascading more explicit by having more compact and documented tests.
Migrated from D770 (view on Phabricator)
Merge request reports
Activity
Some references in the commit message have been migrated:
- D682 is now !11 (closed)
Build is green See https://jenkins.softwareheritage.org/job/DLDBASE/job/tox/34/ for more details.
mentioned in issue #1393 (closed)
! In !17 (closed), @ardumont wrote: If you have better proposition names than SWHLoader and SWHStatelessLoader, i'd glad to hear it ;)
respectively BufferedLoader and UnbufferedLoader?
43 }, 44 45 'send_contents': True, 46 'send_directories': True, 47 'send_revisions': True, 48 'send_releases': True, 49 'send_snapshot': True, 50 51 'content_packet_size': 2, 52 'content_packet_size_bytes': 8, 53 'directory_packet_size': 2, 54 'revision_packet_size': 2, 55 'release_packet_size': 2, 56 57 'content_size_limit': 10000, 58 } from swh-loader-pypi!28 (closed)#inline-4163: something like this ;)