Skip to content

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 its LiveServer class wrapped by the live_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)

Merge request reports