tests: Fix failing ones after new pytest-flask release and migration to CoreSWHID
swh-scanner
tests are currently failing for two reasons:
-
pytest-flask
removed the url method of itsLiveServer
class wrapped by thelive_server
fixture (see commit). So use recommended way to get an URL when using Flask, this requires adding a dummy root endpoint to the API in order to get its base URL. -
migration to
CoreSWHID
was buggy due to missing typing information prior refactoring
Migrated from D5178 (view on Phabricator)