swh-lister/swh/lister/tests
Antoine R. Dumont (@ardumont) 3ab856288c
Add gitiles lister
Gitiles instance returns voluntarily a malformed json output (json prefixed with
``)]}'\n``) [2]. The lister deals with it to properly parse the json response
nonetheless. It drops the prefix and then parses the json.

If at some point, they drop this prefix to return json directly, the lister will be able
to deal with it too. There are 2 tests one with 'standard' gitile format and another
with standard json to account for both case.

Refs. swh/meta#5045

[2] https://github.com/google/gitiles/issues/263
2023-07-13 10:30:51 +02:00
..
__init__.py swh.lister.gitlab: Improve headers extraction 2018-07-11 18:09:18 +02:00
test_cli.py Add gitiles lister 2023-07-13 10:30:51 +02:00
test_pattern.py lister: Allow lister to build url out of the instance parameter 2023-05-19 15:03:49 +02:00
test_utils.py Use http_retry decorator from swh.core.retry module 2023-04-13 14:19:57 +02:00
utils.py Use http_retry decorator from swh.core.retry module 2023-04-13 14:19:57 +02:00