Skip to content

hypothesis: Fix some issues in snapshots strategy and add tests

A couple of tests in swh-web fail after updating swh-model.

I noticed two issues related to the snapshots hypothesis strategy since this recent update:

  • Keyword parameters transmission to snapshots_d strategy were invalid (copy / paste mistake I guess)

  • A new edge case never encountered since then with the strategy: the max_size constraint could end up not respected if the generated snapshot contains alias branches. I guess recent changes in swh-model makes that case appear now.

I fixed both issues and add new tests.


Migrated from D2942 (view on Phabricator)

Merge request reports