HomeSoftware Heritage

tests: Improve HTTP errors reporting

Description

tests: Improve HTTP errors reporting

Add helper functions to check HTTP responses in tests implementation.

If an unexpected HTTP status code is encountered, the traceback that led to
the error will be displayed in pytest report.

Closes T2657

Details

Provenance
anlambertAuthored on Oct 15 2020, 7:22 PM
anlambertPushed on Oct 20 2020, 1:04 PM
Differential Revision
D4278: tests: Improve HTTP errors reporting
Parents
rDWAPPS3add0d1ee7ca: django: Improve error handling
Branches
Unknown
Tags
Unknown
Tasks
T2657: Improve HTTP errors reporting in tests
Build Status
Buildable 16485
Build 25397: test-and-buildJenkins console ยท Jenkins