Migrate loader tests to use pytest
This simplifies the base classes indirection introduced to make the tests run.
It keeps the unittest scaffolding to allow declaring tests once and reuse
amongst the different loader instances (GitLoader, GitLoaderFromDisk,
GitLoaderFromArchive).
The code coverage increased from 82% to 85%.
Related to T2482