deposit_private_check: Fix passing tests
They were only checking one tarball case (the ones reference in the ready_deposit_ok deposit). This now creates as much deposit as there are extensions to check. This only had to adapt the deposit so it's provided with a valid metadata. Otherwise, the metadata checks were invalid, failing the overall tests. Refs. swh/infra/sysadm-environment#5129
Showing
- swh/deposit/tests/api/test_collection_post_binary.py 2 additions, 3 deletionsswh/deposit/tests/api/test_collection_post_binary.py
- swh/deposit/tests/api/test_deposit_private_check.py 68 additions, 25 deletionsswh/deposit/tests/api/test_deposit_private_check.py
- swh/deposit/tests/api/test_deposit_update_binary.py 2 additions, 1 deletionswh/deposit/tests/api/test_deposit_update_binary.py
- swh/deposit/tests/common.py 6 additions, 3 deletionsswh/deposit/tests/common.py
Loading
Please register or sign in to comment