Remove mocks and use hypothesis in api directory endpoints tests
Fouth diff exposing the work I have done so far on improving swh-web tests. In this one, remove the mocks by rewriting the tests using hypothesis for the directory endpoints in the web api.
Related #1271 (closed)
Depends on !912 (closed)
Migrated from D828 (view on Phabricator)