Page MenuHomeSoftware Heritage

Fix tests for latest swh.storage and swh.model
ClosedPublic

Authored by douardda on Oct 31 2019, 9:43 AM.

Details

Summary
  • update tests for storage>=0.0.155 where 'type' has moved from origin to origin_visit.
  • fix test_metadata.py for frozen entities in swh.model.model introduced in swh.model 0.0.50.

Diff Detail

Event Timeline

This diff needs more work for storage 0.0.156
On it

vlorentz added a subscriber: vlorentz.
vlorentz added inline comments.
swh/indexer/tests/utils.py
544

'type' should not be in origin

This revision now requires changes to proceed.Oct 31 2019, 11:57 AM

modify utils.py + fix dependencies on storage so tests can pass as is

Just rename origin to visit in the for loop

This revision is now accepted and ready to land.Nov 4 2019, 3:59 PM

rename origin->visit in utils.py:fill_storage()