-
- Downloads
Fix OriginInfo: use a list instead of a set for visit_types
This matches what swh-search returns and expects. This could make test_lookup_origin() (in test_archive.py) fail when the bad luck (?) made hypothesis generate a test set where swh-search's in-memory backend tries to merge the visit_types with an existing one (thus trying to add a pair set objects). Adapt the definition of OriginInfo (more or less the local version of swh-search's OriginDict) accordingly.
Showing
- swh/web/api/tests/views/test_origin.py 1 addition, 1 deletionswh/web/api/tests/views/test_origin.py
- swh/web/browse/tests/test_snapshot_context.py 1 addition, 2 deletionsswh/web/browse/tests/test_snapshot_context.py
- swh/web/utils/archive.py 1 addition, 1 deletionswh/web/utils/archive.py
- swh/web/utils/tests/test_archive.py 1 addition, 1 deletionswh/web/utils/tests/test_archive.py
- swh/web/utils/typing.py 2 additions, 2 deletionsswh/web/utils/typing.py
Loading
Please register or sign in to comment