HomeSoftware Heritage

deposit_update: Fix check error during update with wrong mimetype

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

deposit_update: Fix check error during update with wrong mimetype

Multiple things went wrong, which explains the issue in production:

  • the internal representation is expected to be a tuple for the post (not an HttpResponse instance)
  • the tests were failing on the expected bad status for the wrong reason (bad deposit status was used, 'ready' instead of 'partial', an update can only take place on 'partial' deposit)
  • the tests were differents but tested the same endpoint either way (only put was called)

Related P279
Related T1010#20869
Related T1010#20870

Details

Provenance
ardumontAuthored on Jul 2 2018, 3:20 PM
ardumontPushed on Jul 2 2018, 4:28 PM

Commit No Longer Exists

This commit no longer exists in the repository.