Refactor CI hub fixtures to use monkeypatch instead of patch
_The documentation is not available anymore as the PR was closed or merged._
Minor refactoring of CI to use `pytest` `monkeypatch` instead of `unittest` `patch`.