mercurial.loader: Refactor remaining tests to use pytest
This did not touch any tests data. This now loads the loader fully through a pg-storage instance.
This stops using the BaseLoaderTest from swh.loader.core.
(coverage remained the same 82%)
Related to #2487 (closed)
Test Plan
tox
Migrated from D3448 (view on Phabricator)