scanner: add integration tests
We want to have a basic suite of integration tests that checks that the code scanner works well, provided an implementation of the /known endpoint si available.
Running idea is to use the pytest fixture that spawn a local swh-web instance, backed by the in-memory storage (for speed).
Migrated from T2299 (view on Phabricator)