HomeSoftware Heritage

auth: Rework tests logic and add coverage to decode_token endpoint

Description

auth: Rework tests logic and add coverage to decode_token endpoint

This reworks the tests logic as well to reuse the way web tests are written.

This is a first step to actually use the mock class defined here as fixture for future
modules which will depend on swh-auth (swh-web-client, swh-web and swh-deposit).

Related to T3079

Details

Provenance
ardumontAuthored on Mar 3 2021, 5:41 PM
ardumontPushed on Mar 4 2021, 9:44 AM
Differential Revision
D5192: swh.auth: Add coverage to the decode_token endpoint
Parents
rDAUTHa750b58718de: swh.auth: Fix unused import
Branches
Unknown
Tags
Unknown
Tasks
T3079: Boostrap swh-auth module for authentication
Build Status
Buildable 19673
Build 30529: test-and-buildJenkins console · Jenkins